Merge pull request #2 from cHoco/patch-1

base16-theme: Add support for error section
This commit is contained in:
Christian Brabandt 2016-01-28 14:47:21 +01:00
commit 5a6453cddd

View File

@ -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