1
0
Fork 1
Dotfiles_nvim/lua/toolchain/go/debugger.lua
2024-07-02 23:52:43 +02:00

18 lines
475 B
Lua

---@type ToolchainDebuggers
return {
plugins = {
{
'leoluz/nvim-dap-go',
config = function()
local dir = require('util.finder').find_project_dir(
'go.mod',
3,
{ 'src', 'app', 'pkg' },
{ 'test' },
true
)
require('dap-go').setup({ delve = { cwd = dir } })
end,
},
},
}