update the ctrlp theme when the airline theme changes
This commit is contained in:
parent
4683616391
commit
d1ee91eadf
@ -33,6 +33,7 @@ function! airline#load_theme(name)
|
||||
let w:airline_lastmode = ''
|
||||
call airline#highlight(['inactive'])
|
||||
call airline#update_highlight()
|
||||
call airline#extensions#load_theme()
|
||||
endfunction
|
||||
|
||||
function! airline#highlight(modes)
|
||||
|
@ -69,12 +69,21 @@ function! airline#extensions#is_excluded_window()
|
||||
return 0
|
||||
endfunction
|
||||
|
||||
function! airline#extensions#load_theme()
|
||||
if get(g:, 'loaded_ctrlp', 0)
|
||||
call airline#extensions#ctrlp#load_theme()
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! airline#extensions#load()
|
||||
let g:unite_force_overwrite_statusline = 0
|
||||
let g:vimfiler_force_overwrite_statusline = 0
|
||||
if get(g:, 'loaded_unite', 0)
|
||||
let g:unite_force_overwrite_statusline = 0
|
||||
endif
|
||||
if get(g:, 'loaded_vimfiler', 0)
|
||||
let g:vimfiler_force_overwrite_statusline = 0
|
||||
endif
|
||||
|
||||
if get(g:, 'loaded_ctrlp', 0)
|
||||
call airline#extensions#ctrlp#load_ctrlp_hi()
|
||||
let g:ctrlp_status_func = {
|
||||
\ 'main': 'airline#extensions#ctrlp#ctrlp_airline',
|
||||
\ 'prog': 'airline#extensions#ctrlp#ctrlp_airline_status',
|
||||
|
@ -1,5 +1,4 @@
|
||||
function! airline#extensions#ctrlp#load_ctrlp_hi()
|
||||
let load_theme = g:airline#themes#{g:airline_theme}#normal
|
||||
function! airline#extensions#ctrlp#load_theme()
|
||||
if exists('g:airline#themes#{g:airline_theme}#ctrlp')
|
||||
let theme = g:airline#themes#{g:airline_theme}#ctrlp
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user