Mason JAVA JDTLS Neovim

3.5k Views Asked by At

I am trying to configure JAVA lsp with my Neovim Config My Neovim Config

I have used Mason to install JDTLS among other LSP's as well, see below:

enter image description here

My lspconfig has the following form:

enter image description here

My LSP servers all work fine except for Java. When inspecting the lsp logs I get : enter image description here

1

There are 1 best solutions below

3
Remicaster On

Based on my experience, JDTLS has a different way to attach as compared to other LSP. You have to refer to the original jdtls documentation to setup the server.

You can attempt this setup (based on the docs above I linked)

enter image description here

See if it helps you.