feat: dap-go

This commit is contained in:
ralvescosta 2025-03-16 20:02:20 -03:00
parent d729bec926
commit 7d37624530
1 changed files with 29 additions and 29 deletions

View File

@ -1,31 +1,31 @@
return {
-- {
-- 'leoluz/nvim-dap-go',
-- ft = 'go',
-- dependencies = {
-- 'mfussenegger/nvim-dap',
-- },
-- config = function(_, _)
-- require('dap-go').setup {
-- dap_configurations = {
-- {
-- type = 'go',
-- name = 'Debug with dynamic args',
-- request = 'launch',
-- program = '${workspaceFolder}/main.go',
-- outputMode = 'remote',
-- args = require('dap-go').get_arguments,
-- env = {
-- GOPRIVATE = 'bitbucket.org/asappay',
-- ENVIRONMENT = 'dev',
-- SERVICE_NAME = 'go-acquirer-local-service',
-- OTEL_EXPORTER_OTLP_ENDPOINT = 'localhost:4317',
-- AWSPROFILE = 'asappay-dev',
-- SOME_VAR = 'value',
-- },
-- },
-- },
-- }
-- end,
-- },
{
'leoluz/nvim-dap-go',
ft = 'go',
dependencies = {
'mfussenegger/nvim-dap',
},
config = function(_, _)
require('dap-go').setup {
dap_configurations = {
{
type = 'go',
name = 'Debug with dynamic args',
request = 'launch',
program = '${workspaceFolder}/main.go',
outputMode = 'remote',
args = require('dap-go').get_arguments,
env = {
GOPRIVATE = 'bitbucket.org/asappay',
ENVIRONMENT = 'dev',
SERVICE_NAME = 'go-acquirer-local-service',
OTEL_EXPORTER_OTLP_ENDPOINT = 'localhost:4317',
AWSPROFILE = 'asappay-dev',
SOME_VAR = 'value',
},
},
},
}
end,
},
}