These are chat archives for Shougo/dein.vim

May 2016
Gontran Baerts
May 04 2016 22:29

Hi, I would like to check at startup if a plugin is enabled or disabled to display a warning message. For example:

call dein#begin(...)
call dein#add('ternjs/tern_for_vim', {
\    'if': 'executable("tern")'
\ })
if dein#tap('tern_for_vim') == 0
    echohl WarningMsg | echom "tern_for_vim disabled. Is tern installed ?" | echohl None
call dein#end()

Is it the right way to do this ?