mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-12 18:34:41 +02:00
nvim dap
This commit is contained in:
parent
42707d1b7e
commit
cd3ac0c6f8
4 changed files with 60 additions and 2 deletions
|
@ -12,8 +12,20 @@ elseif vim.fn.has("unix") == 1 then
|
|||
else
|
||||
print("Unsupported system")
|
||||
end
|
||||
|
||||
local bundles = {
|
||||
vim.fn.glob(
|
||||
"~/.config/nvim/.debuggers/java-debug/com.microsoft.java.debug.plugin/target/com.microsoft.java.debug.plugin-*.jar")
|
||||
};
|
||||
|
||||
local on_attach = function(client, bufr)
|
||||
require('jdtls').setup_dap()
|
||||
require'lsp'.common_on_attach(client, bufr)
|
||||
end
|
||||
|
||||
require('jdtls').start_or_attach({
|
||||
on_attach = require'lsp'.common_on_attach,
|
||||
on_attach = on_attach,
|
||||
cmd = {JAVA_LS_EXECUTABLE},
|
||||
root_dir = require('jdtls.setup').find_root({'gradle.build', 'pom.xml'})
|
||||
root_dir = require('jdtls.setup').find_root({'build.gradle', 'pom.xml', '.git'}),
|
||||
init_options = {bundles = bundles}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue