1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 02:30:03 +08:00

Catch errers if airline has not been installed

This commit is contained in:
wsdjeg 2017-04-22 10:56:58 +08:00
parent cc454b8ad0
commit 1bc506f3a7

View File

@ -14,4 +14,7 @@ function! MyPlugin(...)
"let w:airline_render_right = 0 "let w:airline_render_right = 0
endif endif
endfunction endfunction
try
call airline#add_statusline_func('MyPlugin') call airline#add_statusline_func('MyPlugin')
catch
endtry