Skip to content

Commit

Permalink
fix: define CurSearch
Browse files Browse the repository at this point in the history
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
  • Loading branch information
roosta committed May 30, 2024
1 parent 0f358d9 commit 064e1f2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions colors/srcery.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 064e1f2

Please sign in to comment.