You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a color scheme is loaded (the "g:colors_name" variable is set)
setting 'background' will cause the color scheme to be reloaded. If
the color scheme adjusts to the value of 'background' this will work.
However, if the color scheme sets 'background' itself the effect may
be undone. First delete the "g:colors_name" variable when needed.
onedark.vim does include set background=dark as its very last line to work around a different issue, which is seemingly what's causing the behavior you're seeing (if the color scheme sets 'background' itself the effect may be undone.)
I tried removing set background=dark from onedark.vim itself as a test, and this caused Neovim 0.4.4 not to change any colors at all when manually running set background=light and set background=dark repeatedly. Although this is an odd behavior, because it is easily mitigated by just running colorscheme onedark again, I am going to leave the existing set background=dark in place and close this issue.
Terminal Emulator Info
alacritty, default.
Output From
nvim --version
Issue Description
When run the commands
set background=light
and thenset background=dark
again, the colors change:Default:
After setting background to light and then to dark again:
Thank you for this colorscheme!!
The text was updated successfully, but these errors were encountered: