base16-theme: Add support for error section

This commit is contained in:
Enrico Ghirardi 2016-01-28 14:08:41 +01:00
parent 78c4dcc36c
commit 2923dfd1e1

View File

@ -132,6 +132,33 @@ else
let g:airline#themes#base16#palette.replace_modified.airline_warning = let g:airline#themes#base16#palette.replace_modified.airline_warning =
\ g:airline#themes#base16#palette.normal.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 endfunction
call airline#themes#base16#refresh() call airline#themes#base16#refresh()
endif endif