-
Notifications
You must be signed in to change notification settings - Fork 473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Highlights are incorrectly rendered when StatusLine highlight group is inverted #1312
Comments
I also got the same problem as the one @daveyarwood has mentioned here after updating neovim. Before updating: |
Related discussion: #1309 |
I added this to my configuration: vim.api.nvim_set_hl(0, "StatusLine", {reverse = false})
vim.api.nvim_set_hl(0, "StatusLineNC", {reverse = false}) This is a workaround that makes my lualine normal again. For some themes (like ellisonleao/gruvbox.nvim) you can also do this: ...
config = function()
require(plugin).setup({
inverse = false,
}
end
...
|
This works for me. Thanks for the workaround! |
See if #1315 fixes this |
#1315 fixes this for me 👍 |
#1315 is better, but still has two issues for me:
|
Self Checks
How to reproduce the problem
commit e049c6e4c08a141c94218672e770f86f91c27a11
StatusLine
hasreverse
setExpected behaviour
Colours look normal.
Actual behaviour
Colours are inverted (including double inverting of highlight groups that are already inverted). Section separators are incorrect, since they use the background colours (which are now the foreground colours) of the adjacent components and they are on the wrong side (since their own background and foreground colours are swapped).
Minimal config to reproduce the issue
Additional information
neovim/neovim@e049c6e made
statustext
etc. inherit styles fromStatusLine
etc.The text was updated successfully, but these errors were encountered: