mirror of
https://github.com/vim-airline/vim-airline-themes
synced 2025-02-16 09:36:53 +00:00
check initialized so autoloaded plugins happen first
This commit is contained in:
parent
f5afe4bcac
commit
91904d942e
@ -129,7 +129,7 @@ function! airline#extensions#load()
|
|||||||
call airline#extensions#tagbar#init(s:ext)
|
call airline#extensions#tagbar#init(s:ext)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if g:airline_enable_csv && exists(':Table')
|
if g:airline_enable_csv && (get(g:, 'loaded_csv', 0) || exists(':Table'))
|
||||||
call airline#extensions#csv#init(s:ext)
|
call airline#extensions#csv#init(s:ext)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -83,13 +83,14 @@ function! s:airline_toggle()
|
|||||||
else
|
else
|
||||||
let s:stl = &stl
|
let s:stl = &stl
|
||||||
augroup airline
|
augroup airline
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd ColorScheme * call airline#reload_highlight()
|
autocmd ColorScheme * call airline#reload_highlight()
|
||||||
autocmd WinEnter,BufWinEnter,FileType,BufUnload,ShellCmdPost *
|
autocmd WinEnter,BufWinEnter,FileType,BufUnload,ShellCmdPost *
|
||||||
\ call <sid>on_window_changed()
|
\ call <sid>on_window_changed()
|
||||||
augroup END
|
augroup END
|
||||||
" update statusline now
|
if s:airline_initialized
|
||||||
call <sid>on_window_changed()
|
call <sid>on_window_changed()
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user