gruvbox icon indicating copy to clipboard operation
gruvbox copied to clipboard

Status line appearance differs in NeoVim 0.11

Open ararslan opened this issue 9 months ago • 3 comments

NeoVim 0.11 introduced changes that affect this how this package colors the status line. This is what it looks like by default in NeoVim 0.11:

Image

This change[^1] restores the appearance from NeoVim 0.10.4 for me:

diff --git a/colors/gruvbox.vim b/colors/gruvbox.vim
index 66246fb..5df274f 100644
--- a/colors/gruvbox.vim
+++ b/colors/gruvbox.vim
@@ -512,8 +512,8 @@ call s:HL('IncSearch', s:hls_cursor, s:bg0, s:inverse)

 call s:HL('Underlined', s:blue, s:none, s:underline)

-call s:HL('StatusLine',   s:bg2, s:fg1, s:inverse)
-call s:HL('StatusLineNC', s:bg1, s:fg4, s:inverse)
+call s:HL('StatusLine',   s:bg2, s:fg1)
+call s:HL('StatusLineNC', s:bg1, s:fg4)

 " The column separating vertically split windows
 call s:HL('VertSplit', s:bg3, s:vert_split)

This is how it looks with the above change applied, which is the same as in 0.10.4:

Image

I'd be happy to make a PR with the above patch. It's unclear to me though what downstream effects that patch could have as written (with or without an appropriate has('nvim-0.11') guard).

[^1]: Note that this is slightly different from the corresponding change made to gruvbox.nvim: there, in addition to removing the inverse part, the arguments were swapped. That produces a different appearance for me when applied to this package.

ararslan avatar Apr 01 '25 01:04 ararslan

This does not look like something Gruvbox should fix, see: https://github.com/gruvbox-community/gruvbox/issues/200#issuecomment-2869162757

rbong avatar May 10 '25 21:05 rbong

Im not expert, but it seems there is a color inversion in a recent version of neovim. I solved with this:

" Fixes incorrect status bar colors (inverted)
hi statusline cterm=NONE gui=NONE
hi tabline cterm=NONE gui=NONE
hi winbar cterm=NONE gui=NONE

juancarlangas avatar Jul 11 '25 17:07 juancarlangas

Just in case it helps, switching to this fixed it for me (as well as a few other colours) https://github.com/ellisonleao/gruvbox.nvim

betterphp avatar Oct 20 '25 15:10 betterphp