mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:00:04 +08:00
Catch errers if airline has not been installed
This commit is contained in:
parent
cc454b8ad0
commit
1bc506f3a7
@ -14,4 +14,7 @@ function! MyPlugin(...)
|
||||
"let w:airline_render_right = 0
|
||||
endif
|
||||
endfunction
|
||||
call airline#add_statusline_func('MyPlugin')
|
||||
try
|
||||
call airline#add_statusline_func('MyPlugin')
|
||||
catch
|
||||
endtry
|
||||
|
Loading…
Reference in New Issue
Block a user