Dotfiles_nvim/lua/toolchain/go/debugger.lua

19 lines
475 B
Lua
Raw Normal View History

2024-07-02 21:52:43 +00:00
---@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,
},
},
}