-
Notifications
You must be signed in to change notification settings - Fork 25
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
keeps usages highlight un-cleared, when cursor moves among sibiling usage node #21
Comments
Hi, I have implemented something like what you described in #22. |
I have tested it, really nice, highlight works more fluent now. 👍 |
I left some comments on that pr without permission, sorry for my rude. @stsewd |
after all those days use, i found i did not need a smart or automatic definition highlighter, so I added some options to nvim-treesitter-refactor.highlight_definitions
i made a commit to implement it in my fork. |
as now, every time CursorMoved, refactor.highlight_usages will clear_usage_highlights();
this behavior is fine, except when the cursor moves among same
usage node
(i dont known the exact name to describe it), let's consider the following type flow:refactor.navigation.goto_next_usage
or goto_previous_usage or justhl
in the keywordit is very inefficient, and highlight blinks (unless set &updatetime a small value) leads a bad experience.
can we keep the highlight highlighting when the usage node has not changed after cursor moved.
The text was updated successfully, but these errors were encountered: