From 2923dfd1e13e1a8ed3a9b01ae11132fe9e20588a Mon Sep 17 00:00:00 2001 From: Enrico Ghirardi Date: Thu, 28 Jan 2016 14:08:41 +0100 Subject: [PATCH] base16-theme: Add support for error section --- autoload/airline/themes/base16.vim | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/autoload/airline/themes/base16.vim b/autoload/airline/themes/base16.vim index 6945725..88188ad 100644 --- a/autoload/airline/themes/base16.vim +++ b/autoload/airline/themes/base16.vim @@ -132,6 +132,33 @@ else let g:airline#themes#base16#palette.replace_modified.airline_warning = \ g:airline#themes#base16#palette.normal.airline_warning + " Errors + let s:ER = airline#themes#get_highlight2(['ErrorMsg', 'bg'], ['ErrorMsg', 'fg'], 'bold') + let g:airline#themes#base16#palette.normal.airline_error = [ + \ s:ER[0], s:ER[1], s:ER[2], s:ER[3] + \ ] + + let g:airline#themes#base16#palette.normal_modified.airline_error = + \ g:airline#themes#base16#palette.normal.airline_error + + let g:airline#themes#base16#palette.insert.airline_error = + \ g:airline#themes#base16#palette.normal.airline_error + + let g:airline#themes#base16#palette.insert_modified.airline_error = + \ g:airline#themes#base16#palette.normal.airline_error + + let g:airline#themes#base16#palette.visual.airline_error = + \ g:airline#themes#base16#palette.normal.airline_error + + let g:airline#themes#base16#palette.visual_modified.airline_error = + \ g:airline#themes#base16#palette.normal.airline_error + + let g:airline#themes#base16#palette.replace.airline_error = + \ g:airline#themes#base16#palette.normal.airline_error + + let g:airline#themes#base16#palette.replace_modified.airline_error = + \ g:airline#themes#base16#palette.normal.airline_error + endfunction call airline#themes#base16#refresh() endif