Replies: 2 comments 6 replies
-
I don't have time to give you more advice than: look in the source code. Seems like a good idea anyway 👍 , and |
Beta Was this translation helpful? Give feedback.
-
I think However, sometimes navigating among the instances of a variable is not useful enough. See this feature request: rust-lang/rust-analyzer#16365 |
Beta Was this translation helpful? Give feedback.
-
Would it be possible to add a method I could bind to a key to jump between occurrences of a variable? In this discussion on the LSP package there is a suggestion to hook into the
textDocument/documentHighlight
set to allow navigation between occurrences; could something like that work in eglot?I understand I can mostly do this using
isearch-forward-symbol-at-point
, but that will match other stuff if the token happens to be a substring of another token.I'd also be happy implementing this outside the package if someone could show me how :) but a quick keybinding to go from an import line to "where exactly is this used?" seems like something more people might find useful. Thanks for your consideration!
Beta Was this translation helpful? Give feedback.
All reactions