mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-06 12:14:24 +08:00
Fix highlighting problems with Vim
1) Make sure airline_error and airline_warning highlighting are different, so that the correct separator will be drawn. This fixes #982. 2) allow to deactivate %(%) to workaround a vim bug, that may cause leaking of colors from one section to the next and adding additional spaces. This needs to be fixed upstream: https://groups.google.com/d/msg/vim_dev/sb1jmVirXPU/mPhvDnZ-CwAJ Possibly, also related to neovim/neovim#4147 Use `:let airline#extensions#default#section_use_groupitems = 0` to disable grouping of statusline items
This commit is contained in:
@@ -40,7 +40,7 @@ function! airline#themes#patch(palette)
|
||||
let a:palette[mode]['airline_warning'] = [ '#000000', '#df5f00', 232, 190 ]
|
||||
endif
|
||||
if !has_key(a:palette[mode], 'airline_error')
|
||||
let a:palette[mode]['airline_error'] = [ '#000000', '#df5f00', 232, 160 ]
|
||||
let a:palette[mode]['airline_error'] = [ '#000000', '#990000', 232, 160 ]
|
||||
endif
|
||||
endfor
|
||||
|
||||
|
||||
Reference in New Issue
Block a user