mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-07-12 16:44:53 +02:00
parent
a7eb735f2e
commit
4540ea428a
@ -71,10 +71,11 @@ endfunction
|
||||
|
||||
function! airline#switch_matching_theme()
|
||||
if exists('g:colors_name')
|
||||
let existing = substitute(g:colors_name, '-', '_', 'g')
|
||||
let existing = g:airline_theme
|
||||
let theme = substitute(g:colors_name, '-', '_', 'g')
|
||||
try
|
||||
let palette = g:airline#themes#{g:colors_name}#palette
|
||||
call airline#switch_theme(g:colors_name)
|
||||
let palette = g:airline#themes#{theme}#palette
|
||||
call airline#switch_theme(theme)
|
||||
return 1
|
||||
catch
|
||||
for map in items(g:airline_theme_map)
|
||||
|
Loading…
x
Reference in New Issue
Block a user