mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-10-09 06:45:46 +08:00
add g:airline_extensions variable for manual loading
This commit is contained in:
1 parent
51095bad95
commit
50e47ced42
2 files changed
+16
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user