-
-
Notifications
You must be signed in to change notification settings - Fork 109
Add mfussenegger/nvim-jdtls to languages/java #765
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
Comments
For some languages, I've added a uniform |
I can take a stab at it if that is okay, I use java quite a lot, I can provide sample testing workspaces along with my PR |
I'm happy to review a PR that adds nvim-jdtls as an extension. #727 is also relevant. An option under extensions is the best approach imo, other modules I've listed above can be used as reference. |
I am aware of that. So, my thoughts would be to add For draft - https://github.com/venkyr77/nvfnvim/blob/main/modules/lsp/jdtls.nix. I would be using
I am thinking
if the second one is true,
would be needed and we will set I recently also saw that we are wanting to move to the mental model of default keymaps having a toggle. so, if
let me know your thoughts |
That all sounds good to me. I also like that you're thinking about keyboards early, so I say go ahead with the module, and we'll see how it goes in the context of nvf. I'll be away this weekend, but I can provide you a review on Monday or maybe late Sunday if there is anything concrete by then. |
🏷️ Feature Type
New Addon
🔖 Feature description
https://github.com/mfussenegger/nvim-jdtls offers several extensions over the default
jdtls
configured overlspconfig
. Almost all of the tutorials / guidances suggest usingnvim-jdtls
and so consumers ofnvf
are probably writing their own config fornvim-jdtls
(at least me - https://github.com/venkyr77/nvfnvim/blob/main/modules/lsp/jdtls.nix). nixvim supportsnvim-jdtls
here.Read more here
Also,
nvim-jdtls
provides the easiest way to run and debug tests withnvim-dap
- https://github.com/mfussenegger/nvim-dap/wiki/Extensions#language-specific-extensions, https://github.com/mfussenegger/nvim-jdtls?tab=readme-ov-file#debugger-via-nvim-dapwith dap enabled like
one could simply run tests using
require('jdtls').test_class()
orrequire('jdtls').test_nearest_method()
.We already use
jdtls
, we can add an optionconfig.vim.languages.java.lsp.enableNvimJdtlsIntegration
to enablenvim-jdtls
support✔️ Solution
Implement
nvim-jdtls
integration for java whenconfig.vim.languages.java.lsp.enableNvimJdtlsIntegration
istrue
❓ Alternatives
No response
📝 Additional Context
No response
The text was updated successfully, but these errors were encountered: