Give java a default nvim-dap config

This commit is contained in:
Michael 2024-08-05 13:18:16 -04:00
parent 12818a6cb4
commit 7a2eb06dbd

View file

@ -40,6 +40,20 @@ return {
{
"mfussenegger/nvim-dap",
optional = true,
opts = function()
-- Simple configuration to attach to remote java debug process
-- Taken directly from https://github.com/mfussenegger/nvim-dap/wiki/Java
local dap = require("dap")
dap.configurations.java = {
{
type = "java",
request = "attach",
name = "Debug (Attach) - Remote",
hostName = "127.0.0.1",
port = 5005,
},
}
end,
dependencies = {
{
"williamboman/mason.nvim",