23 lines
598 B
Lua
23 lines
598 B
Lua
return {
|
|
"mfussenegger/nvim-dap",
|
|
optional = true,
|
|
opts = function()
|
|
local dap = require("dap")
|
|
dap.configurations.java = {
|
|
{
|
|
type = "java",
|
|
request = "attach",
|
|
name = "Debug (Attach) - Remote",
|
|
hostName = "127.0.0.1",
|
|
port = tonumber(os.getenv("JAVA_DEBUG_PORT") or "5005"),
|
|
},
|
|
}
|
|
end,
|
|
dependencies = {
|
|
{
|
|
"mason-org/mason.nvim",
|
|
opts = { ensure_installed = { "java-debug-adapter", "java-test" } },
|
|
},
|
|
},
|
|
}
|