mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-26 10:13:42 +08:00
allow extensions to reload when color scheme changes. resolves #128
This commit is contained in:
parent
cf9028df9f
commit
8539ac46a6
|
@ -33,6 +33,7 @@ function! airline#reload_highlight()
|
||||||
call airline#highlight(['inactive'])
|
call airline#highlight(['inactive'])
|
||||||
call airline#highlight(['normal'])
|
call airline#highlight(['normal'])
|
||||||
call airline#themes#exec_highlight_separator('Al2', 'warningmsg')
|
call airline#themes#exec_highlight_separator('Al2', 'warningmsg')
|
||||||
|
call airline#extensions#load_theme()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! airline#load_theme(name)
|
function! airline#load_theme(name)
|
||||||
|
@ -41,7 +42,6 @@ function! airline#load_theme(name)
|
||||||
let w:airline_lastmode = ''
|
let w:airline_lastmode = ''
|
||||||
call airline#reload_highlight()
|
call airline#reload_highlight()
|
||||||
call airline#update_highlight()
|
call airline#update_highlight()
|
||||||
call airline#extensions#load_theme()
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! airline#highlight(modes)
|
function! airline#highlight(modes)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user