Update DAP for Go

This commit is contained in:
Vaclav Uruba 2025-05-28 19:17:01 -06:00
parent e096af711f
commit a534812656
Signed by: uruba
GPG Key ID: 9D8E987C4B2E1E9C

View File

@ -26,7 +26,13 @@ return {
"theHamsta/nvim-dap-virtual-text", "theHamsta/nvim-dap-virtual-text",
opts = {}, opts = {},
}, },
-- Mason integration
"jay-babu/mason-nvim-dap.nvim", "jay-babu/mason-nvim-dap.nvim",
-- Go (Delve) integration
{
"leoluz/nvim-dap-go",
opts = {},
},
}, },
keys = { keys = {
{ {
@ -180,24 +186,34 @@ return {
dap.listeners.after.event_initialized["dapui_config"] = function() dap.listeners.after.event_initialized["dapui_config"] = function()
dapui.open({}) dapui.open({})
end end
dap.listeners.before.event_terminated["dapui_config"] = function() -- dap.listeners.before.event_terminated["dapui_config"] = function()
dapui.close({}) -- dapui.close({})
end -- end
dap.listeners.before.event_exited["dapui_config"] = function() -- dap.listeners.before.event_exited["dapui_config"] = function()
dapui.close({}) -- dapui.close({})
end -- end
end, end,
}, },
-- mason.nvim integration -- mason.nvim integration
{ {
"jay-babu/mason-nvim-dap.nvim", "jay-babu/mason-nvim-dap.nvim",
dependencies = { "mason-org/mason.nvim" }, dependencies = {
"mason-org/mason.nvim",
},
lazy = true, lazy = true,
opts = { opts = {
ensure_installed = {
"php-debug-adapter",
},
-- Makes a best effort to setup the various debuggers with -- Makes a best effort to setup the various debuggers with
-- reasonable debug configurations -- reasonable debug configurations
automatic_installation = true, automatic_installation = {
exclude = {
"delve",
},
},
-- You can provide additional configuration to the handlers, -- You can provide additional configuration to the handlers,
-- see mason-nvim-dap README for more information -- see mason-nvim-dap README for more information