From 25425c4feea270951c33de67c595ab3bbe8b0e7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lek=C3=AB=20Mula?= Date: Fri, 20 Sep 2024 11:29:51 +0200 Subject: [PATCH] fix(vim): invisible Search when cursorline is set issue noticed when `coc.nvim` plugin when listing results of LSP find-references --- colors/gruvbox-material.vim | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/colors/gruvbox-material.vim b/colors/gruvbox-material.vim index bc7f827..c7b336b 100644 --- a/colors/gruvbox-material.vim +++ b/colors/gruvbox-material.vim @@ -72,8 +72,13 @@ else endif endif endif -call gruvbox_material#highlight('IncSearch', s:palette.bg0, s:palette.bg_red) -call gruvbox_material#highlight('Search', s:palette.bg0, s:palette.bg_green) +if has('nvim') + call gruvbox_material#highlight('IncSearch', s:palette.bg0, s:palette.bg_red) + call gruvbox_material#highlight('Search', s:palette.bg0, s:palette.bg_green) +else + call gruvbox_material#highlight('IncSearch', s:palette.bg_red, s:palette.bg0, 'reverse') + call gruvbox_material#highlight('Search', s:palette.bg_green, s:palette.bg0, 'reverse') +endif highlight! link CurSearch IncSearch call gruvbox_material#highlight('ColorColumn', s:palette.none, s:palette.bg2) if s:configuration.ui_contrast ==# 'low'