-
-
Notifications
You must be signed in to change notification settings - Fork 847
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(lsp): pass server resp through client handlers (1) #2770
Conversation
For LSP methods/pickers: - references - definition - typeDefinition - implementation Passes the server results through client (and neovim's) lsp handler function. This lets those handlers deal with some of the language server specific idiosyncrasies. Also refactors shared code between these pickers. Other pickers/methods will need similar treatment.
2ba3aa3
to
2d9e3be
Compare
Thanks for the quick PR! When I re-try my reproduction steps from #2768, I run into this error:
Which suggests that |
Ah.. it's probably a neovim version issue. I think we're planning to bump the minimum neovim version requirement to 0.10 for telescope v0.2.0 but there's no timeline for that. Either we come up with a different approach or can't merge this until then. I'm not sure if I'm in love with my solution anyways. This relies on the custom handlers eventually calling neovim's builtin handler or supporting a |
@jamestrew any thoughts on when this may get released? This fixes an issue I have been having where I cannot jump to the definition for typescript dependencies which are imported via a URL. I now see that this pull request is quite old and probably will not get merged, however, there does seem to still be an issue with telescope and jumping to defenitions. |
See #2768 (comment) telescope doesn't handle custom handlers and I don't see any great way of doing so as the linked comment explains. I'm still thinking about this problem but I don't think this PR is the right approach now. |
@jamestrew is there a way to make telescope not handle these, I am not quite sure why gd to jump to a definition would go through telescope at all, I can see gr (references) but not jump to definition. |
That would be dependent on your neovim config. Somewhere you must have gd mapping to telescope. |
yep you are correct, it seems LazyVim is doing this by default |
For LSP methods/pickers:
Passes the server results through client (and neovim's) lsp handler function.
This lets those handlers deal with some of the language server specific idiosyncrasies.
Also refactors shared code between these pickers.
Other pickers/methods will need similar treatment.