add g:airline_extensions variable for manual loading

This commit is contained in:
Bailey Ling committed 2015-02-28 17:40:23 -05:00
1 parent 51095bad95
commit 50e47ced42
2 files changed
+16

No files matched your search

+7
View File
@@ -121,6 +121,13 @@ function! airline#extensions#load()
" non-trivial number of external plugins use eventignore=all, so we need to account for that
autocmd CursorMoved * call <sid>sync_active_winnr()
if exists('g:airline_extensions')
for ext in g:airline_extensions
call airline#extensions#{ext}#init(s:ext)
endfor
return
endif
call airline#extensions#quickfix#init(s:ext)
if get(g:, 'loaded_unite', 0)