Closed realtica closed 1 year ago
Looks like you're also using lspconfig.jdtls.setup which creates the second client
Looks like you're also using lspconfig.jdtls.setup which creates the second client
No, lspconfig.jdtls.setup
is comment out.
Please, I closed this issue by mistake. :S
Well, It must come from something in your configuration or some other plugin
@realtica not sure if you solved this already or not.
But I had the same issue this morning and I was able to solve it.
The thing is, I'm using LazyVim, and it was automatically calling the lspconfig.jdtls.setup
for all the mason installed LSPs.
What I did to disable it was
on my file plugins\lspconfig.lua
return {
"neovim/nvim-lspconfig",
opts = {
setup = {
jdtls = function(_, _)
-- this will disable LazyVim from setting up jdtls automatically
return true
end,
},
},
}
With this config the only JDLTS attached is the one that I create with require("jdtls").start_or_attach(config)
LSP client configuration
Eclipse.jdt.ls version
1.18.0
Steps to Reproduce
Opening a .java file in nvim
Expected Result
Actual Result