fix autoselection of theme for certain startup configs.
This commit is contained in:
parent
de69bba26e
commit
ec20ea06c3
@ -76,9 +76,11 @@ function! s:init()
|
|||||||
call airline#extensions#load()
|
call airline#extensions#load()
|
||||||
|
|
||||||
let s:airline_theme_defined = exists('g:airline_theme')
|
let s:airline_theme_defined = exists('g:airline_theme')
|
||||||
|
if !airline#switch_matching_theme()
|
||||||
let g:airline_theme = get(g:, 'airline_theme', 'dark')
|
let g:airline_theme = get(g:, 'airline_theme', 'dark')
|
||||||
call airline#switch_theme(g:airline_theme)
|
call airline#switch_theme(g:airline_theme)
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:on_window_changed()
|
function! s:on_window_changed()
|
||||||
|
Loading…
Reference in New Issue
Block a user