I sometimes take Java project and I dont want to use another tool to such as Eclipse nor Netbeans...
I took some times to make this work.
Note : I use NvChad
- Have Java installed (I tried on versions: 17, 21, 23)
- Install "mfussenegger/nvim-jdtls"
- Install "jdtls" from Mason
- Adjust the content of
lua/configs/jdtls.lua
(link) to your local configuration (see comments) - Check how "jdtls" is setup in
./lua/configs/lspconfig.lua
(link) - Enjoy
Just open an issue or file a pull request.