Replies: 1 comment 1 reply
-
The
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the documentation to set up with jdt.ls it says I have to extend initializationOptions. where is this file?
java-debug installation
config['init_options'] = {
bundles = {
vim.fn.glob("path/to/java-debug/com.microsoft.java.debug.plugin/target/com.microsoft.java.debug.plugin-*.jar")
};
}
also it says extend the configuration for nvim-jdtls. there are many config files in the nvim-jdtls directory. what is the name of this file?
nvim-dap setup
You also need to call require('jdtls').setup_dap() to have it register a java adapter.
To do that, extend the configuration for nvim-jdtls with:
config['on_attach'] = function(client, bufnr)
-- With `hotcodereplace = 'auto' the debug adapter will try to apply code changes
-- you make during a debug session immediately.
-- Remove the option if you do not want that.
require('jdtls').setup_dap({ hotcodereplace = 'auto' })
end
Beta Was this translation helpful? Give feedback.
All reactions