From 62fa3c37e4a6a337fb1d8da2f3e963b7085020e6 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Sun, 1 Sep 2013 10:06:25 -0400 Subject: [PATCH] give warning section an orange color by default (#177). --- autoload/airline.vim | 1 - autoload/airline/themes.vim | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/autoload/airline.vim b/autoload/airline.vim index 63fc270b..7da3ff21 100644 --- a/autoload/airline.vim +++ b/autoload/airline.vim @@ -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 diff --git a/autoload/airline/themes.vim b/autoload/airline/themes.vim index d4ec32b0..0d9158dd 100644 --- a/autoload/airline/themes.vim +++ b/autoload/airline/themes.vim @@ -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.