mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-10 14:01:52 +08:00
introduce g:airline_theme_patch_func (#173).
This commit is contained in:
@@ -14,6 +14,11 @@ function! airline#switch_theme(name)
|
||||
let palette = g:airline#themes#{g:airline_theme}#palette "also lazy loads the theme
|
||||
call airline#themes#patch(palette)
|
||||
|
||||
if exists('g:airline_theme_patch_func')
|
||||
let Fn = function(g:airline_theme_patch_func)
|
||||
call Fn(palette)
|
||||
endif
|
||||
|
||||
let w:airline_lastmode = ''
|
||||
call airline#update_statusline()
|
||||
call airline#load_theme()
|
||||
|
||||
Reference in New Issue
Block a user