From 064e1f2d8b69bd89e084bd62a2c8ab4518e7ee5d Mon Sep 17 00:00:00 2001 From: Daniel Berg Date: Thu, 30 May 2024 16:19:39 +0200 Subject: [PATCH] fix: define CurSearch Define CurSearch along the other search highlights, set it to use xgray/inverse, and be underline and bold. Tweak existing search groups to work with new CurSearch, Seems some defaults changed or this hl group got added in nvim 0.10, `CurSearch` is the `hlsearch` word under the cursor. It was set to default colorscheme yellow, which messed with text selection, and don't work with how search is colorized in srcery. Ref: #120 --- colors/srcery.vim | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/colors/srcery.vim b/colors/srcery.vim index 09a092b..6f6b243 100644 --- a/colors/srcery.vim +++ b/colors/srcery.vim @@ -222,12 +222,15 @@ hi! link VisualNOS Visual if g:srcery_inverse == 1 && g:srcery_inverse_matches == 1 call s:HL('Search', s:none, s:none, s:inverse) - call s:HL('IncSearch', s:none, s:none, s:inverse) + call s:HL('IncSearch', s:none, s:none, s:underline . s:inverse . s:bold) + call s:HL('CurSearch', s:none, s:none, s:underline . s:inverse . s:bold) else - call s:HL('Search', s:none, s:xgray5, s:bold) + call s:HL('Search', s:none, s:xgray5) call s:HL('IncSearch', s:none, s:xgray5, s:underline . s:bold) + call s:HL('CurSearch', s:none, s:xgray5, s:underline . s:bold) endif + call s:HL('Underlined', s:blue, s:none, s:underline) call s:HL('StatusLine', s:bright_white, s:xgray2)