-
Notifications
You must be signed in to change notification settings - Fork 81
Open
Labels
Description
I would like to set the whitespace highlight color depending on the background, which seems to be automatically detected by neovim at some point, but stays at 'dark' while my vimrc is being loaded.
So I tried this:
let g:better_whitespace_guicolor='Brown'
autocmd OptionSet background let g:better_whitespace_guicolor=&background == 'light' ? 'LightYellow' : 'Brown'Then, after background is set to 'light', :echo g:better_whitespace_guicolor returns 'LightYellow', yet the whitespace is highlighted in Brown.