mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-03-01 04:52:19 +08:00
reload colors when tomorrow theme changes
This commit is contained in:
@@ -29,6 +29,11 @@ function! airline#exec_highlight(group, colors)
|
||||
\ colors[4] != '' ? 'term='.colors[4] : '')
|
||||
endfunction
|
||||
|
||||
function! airline#reload_highlight()
|
||||
call airline#highlight(['inactive'])
|
||||
call airline#highlight(['normal'])
|
||||
endfunction
|
||||
|
||||
function! airline#load_theme(name)
|
||||
let g:airline_theme = a:name
|
||||
let inactive_colors = g:airline#themes#{g:airline_theme}#inactive "also lazy loads the theme
|
||||
|
||||
Reference in New Issue
Block a user