forked from Snoweuph/Dotfiles_nvim
18 lines
475 B
Lua
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,
|
|
},
|
|
},
|
|
}
|