mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2024-12-03 07:13:51 +08:00
eagerly bootstrap all the variables, but load extensions after vim is
loaded. #720
This commit is contained in:
parent
ec18e6639d
commit
b08784907a
|
@ -8,7 +8,6 @@ let g:loaded_airline = 1
|
|||
|
||||
let s:airline_theme_defined = 0
|
||||
function! s:init()
|
||||
call airline#init#bootstrap()
|
||||
call airline#extensions#load()
|
||||
call airline#init#sections()
|
||||
|
||||
|
@ -98,5 +97,7 @@ command! AirlineToggleWhitespace call airline#extensions#whitespace#toggle()
|
|||
command! AirlineToggle call <sid>airline_toggle()
|
||||
command! AirlineRefresh call airline#load_theme() | call airline#update_statusline()
|
||||
|
||||
call airline#init#bootstrap()
|
||||
|
||||
autocmd VimEnter * call airline#deprecation#check()
|
||||
call s:init()
|
||||
autocmd VimEnter * call s:init()
|
||||
|
|
Loading…
Reference in New Issue
Block a user