2024-05-30 14:31:02 +00:00
|
|
|
return {
|
|
|
|
"leoluz/nvim-dap-go",
|
|
|
|
config = function()
|
2024-05-31 08:31:44 +00:00
|
|
|
|
|
|
|
require("dap-go").setup({
|
|
|
|
delve = {
|
|
|
|
cwd = require("utils.finder").find_project_dir(
|
|
|
|
"go.mod",
|
|
|
|
3,
|
|
|
|
{
|
|
|
|
"src",
|
|
|
|
"app",
|
|
|
|
"pkg"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"test"
|
|
|
|
},
|
|
|
|
true
|
|
|
|
)
|
|
|
|
}
|
|
|
|
})
|
|
|
|
end,
|
2024-05-30 14:31:02 +00:00
|
|
|
}
|
2024-05-31 08:31:44 +00:00
|
|
|
|
|
|
|
|