From af8b3dea0a80d62729d40cafa0f2858a9e1637f9 Mon Sep 17 00:00:00 2001 From: Alex Arslan Date: Mon, 31 Mar 2025 16:46:56 -0700 Subject: [PATCH] Fix statusline breakage with NeoVim 0.11 See https://neovim.io/doc/user/news-0.11.html. The fix here is similar to a fix applied to ellisonleao/gruvbox.nvim, except here the arguments are not swapped; that produced a different result for me entirely, whereas this restores the 0.10.4 appearance. --- colors/gruvbox.vim | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/colors/gruvbox.vim b/colors/gruvbox.vim index 66246fba..c9d2c01d 100644 --- a/colors/gruvbox.vim +++ b/colors/gruvbox.vim @@ -512,8 +512,14 @@ 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) +" See issue #465 +if has('nvim-0.11') + call s:HL('StatusLine', s:bg2, s:fg1) + call s:HL('StatusLineNC', s:bg1, s:fg4) +else + call s:HL('StatusLine', s:bg2, s:fg1, s:inverse) + call s:HL('StatusLineNC', s:bg1, s:fg4, s:inverse) +endif " The column separating vertically split windows call s:HL('VertSplit', s:bg3, s:vert_split)