mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-23 01:31:35 +08:00
give warning section an orange color by default (#177).
This commit is contained in:
parent
501e341589
commit
62fa3c37e4
|
@ -26,7 +26,6 @@ function! airline#add_inactive_statusline_func(name)
|
|||
endfunction
|
||||
|
||||
function! airline#load_theme()
|
||||
highlight! default link airline_warning WarningMsg
|
||||
call airline#highlighter#load_theme()
|
||||
call airline#extensions#load_theme()
|
||||
endfunction
|
||||
|
|
|
@ -54,6 +54,12 @@ function! airline#themes#get_highlight2(fg, bg, ...)
|
|||
endfunction
|
||||
|
||||
function! airline#themes#patch(palette)
|
||||
for mode in keys(a:palette)
|
||||
if !has_key(a:palette[mode], 'airline_warning')
|
||||
let a:palette[mode]['airline_warning'] = [ '#000000', '#df5f00', 232, 166 ]
|
||||
endif
|
||||
endfor
|
||||
|
||||
" this is a pretty heavy handed, but it works...
|
||||
" basically, look for the 'airline_file' group and copy the bg
|
||||
" colors from 'airline_c' into it.
|
||||
|
|
Loading…
Reference in New Issue
Block a user