Closed mawkler closed 7 months ago
I'm not sure if this is an issue with nvim-jdtls or if it's an issue with telescope.nvim, but I've been using Telescope for a while and I've never had this issue before. I just installed nvim-jdtls.
That's very likely a telescope issue.
Since https://github.com/neovim/neovim/commit/ddd92a70d2aab5247895e89abaaa79c62ba7dbb4 neovim supports dynamic registration for definition, and eclipse.jdt.ls uses that, so the definitionProvider
is not available in the server_capabilities
.
They should adapt it to use client.supports_method('textDocument/definition')
to check for the capability. It takes both - the static and dynamic capabilities into consideration.
Whether you found a solution.
LSP client configuration
Eclipse.jdt.ls version
v1.29.0
Steps to Reproduce
:Telescope lsp_definitions
[telescope.builtin.lsp_*]: server does not support definitionProvider
Expected Result
(basically) the same behaviour as with
vim.lsp.buf.definition()
(which does work)Actual Result
I get the errorr:
[telescope.builtin.lsp_*]: server does not support definitionProvider