-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/nvim 0.10 - Define CurSearch #121
Conversation
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
Which versions have you tested this with? Vim/Nvim? I can help out to test. |
I've only tested on nvim 0.10 |
Tested on nvim |
I was able to identify a problem, it's not something introduced with this PR, but rather an issue we've had for a while. if g:srcery_inverse == 1 && g:srcery_inverse_matches == 1 this expression forces user to use both visual inverse, and inverse matches, which is less than ideal, but if A solution would be to introduce a new variable, since I think maybe this could go in a separate PR, as it isn't something related to nvim 0.10, and isn't an issue for most users, me included. I just use the default. EDIT: zero, not non-zero. |
Nice find. I agree that it could come later as a separate pull request. That way we can get this merged now. |
I finally had a chance to look at this. It looks good to me. But any chance for the CurSearch highlight to actually be different or is that just up to the end user to configure? I kind of like it myself, it's just the wrong yellow currently |
It is different, it's bold and got underline. The problem with setting it to yellow is that visual selection kinda breaks, not highlighting correctly, and it doesn't match the other search hl groups. |
Fair enough. I completely missed the underline 🤦♂️ thanks! This looks good |
Fix/nvim 0.10 - Define CurSearch
Changes
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 thehlsearch
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
Screenshot