mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2026-05-18 06:19:36 +08:00
automatically provide the red accent.
This commit is contained in:
@@ -40,5 +40,10 @@ function! airline#themes#patch(palette)
|
||||
let a:palette[mode]['airline_warning'] = [ '#000000', '#df5f00', 232, 166 ]
|
||||
endif
|
||||
endfor
|
||||
|
||||
let a:palette.accents = get(a:palette, 'accents', {})
|
||||
if !has_key(a:palette.accents, 'red')
|
||||
let a:palette.accents.red = [ '#ff0000' , '' , 160 , '' ]
|
||||
endif
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user