-
Notifications
You must be signed in to change notification settings - Fork 175
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
Highlight definition and control block structures #2779
Highlight definition and control block structures #2779
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the contribution!
Are there any |
This seems to be working great for me in Neovim. |
AFAIK, all you need is for |
Thanks, my Is there anyway to make the def/end highlighting continue to highlight when I'm inside the method? Like what Zed does, here is an example: |
That's possible, although not super conventional for the implementation of document highlight. The intent of the feature is to highlight occurrences of the thing under the cursor. This feels more like highlighting the surrounding scope. |
@jbigler oh, that looks like a bug in our implementation. Could you please open an issue so that we can prioritize and look into it? |
Motivation
Closes #2494
Implementation
If the cursor is on a definition or control node, both the start and end of the node will be highlighted.
Automated Tests
Amended existing test case.
Manual Tests
Place the cursor on one of the definition or control nodes.
Screencast.from.25-10-24.08.44.06.AM.IST.webm