1
0

Moved the after directory to lua/barink

This commit is contained in:
Nigel Barink 2024-04-06 22:44:20 +02:00
parent 9843cf6e0c
commit 1248080858
Signed by: Nigel
GPG Key ID: C54278C495538619
4 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,36 @@
local dap = require("dap")
print("You opened a Golang file")
dap.adapters.delve = {
type = 'server',
port = '${port}',
executable = {
command = 'dlv',
args = {'dap', '-l', '127.0.0.1:${port}'},
}
}
-- https://github.com/go-delve/delve/blob/master/Documentation/usage/dlv_dap.md
dap.configurations.go = {
{
type = "delve",
name = "Debug",
request = "launch",
program = "${file}"
},
{
type = "delve",
name = "Debug test", -- configuration for debugging test files
request = "launch",
mode = "test",
program = "${file}"
},
-- works with go.mod packages and sub packages
{
type = "delve",
name = "Debug test (go.mod)",
request = "launch",
mode = "test",
program = "./${relativeFileDirname}"
}
}

View File

@ -0,0 +1 @@
print("You opened a LUA file..")