Moved the after directory to lua/barink
This commit is contained in:
parent
9843cf6e0c
commit
1248080858
36
lua/barink/after/ftplugin/go.lua
Normal file
36
lua/barink/after/ftplugin/go.lua
Normal 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}"
|
||||
}
|
||||
}
|
1
lua/barink/after/ftplugin/lua.lua
Normal file
1
lua/barink/after/ftplugin/lua.lua
Normal file
@ -0,0 +1 @@
|
||||
print("You opened a LUA file..")
|
Loading…
Reference in New Issue
Block a user