only init ycm extension, when YCM is available

This commit is contained in:
Christian Brabandt 2016-01-28 17:38:59 +01:00
parent b7a74b1748
commit 90af4618f5
1 changed files with 3 additions and 1 deletions

View File

@ -138,7 +138,9 @@ function! airline#extensions#load()
call airline#extensions#netrw#init(s:ext) call airline#extensions#netrw#init(s:ext)
endif endif
call airline#extensions#ycm#init(s:ext) if exists(':YcmDiag')
call airline#extensions#ycm#init(s:ext)
endif
if get(g:, 'loaded_vimfiler', 0) if get(g:, 'loaded_vimfiler', 0)
let g:vimfiler_force_overwrite_statusline = 0 let g:vimfiler_force_overwrite_statusline = 0