Replies: 1 comment 2 replies
-
So maybe this won't be what you want all the time, but in your example if the intent is to jump to |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Use case: detecting the type of an expression and jumping to its declaration.
Ideally, I'd like to hover over the expression (by typing
K
), then move my cursor into the hover window (by typingK
again), and usegd
to navigate to any type listed in the hover.I'm curious if there's anything sensible we could do to address this use case or if there have been any attempts to make it work.
One idea I have is to invoke the
lsp_workspace_symbols
command when usinggd
inside the hover. It would be better than nothing, but still not perfect as it would open a choice window. It would be great if it could use semanticdb info somehow.Beta Was this translation helpful? Give feedback.
All reactions