with v3
This commit is contained in:
30
plugins/nvim-dap-go.lua
Normal file
30
plugins/nvim-dap-go.lua
Normal file
@@ -0,0 +1,30 @@
|
||||
return {
|
||||
"leoluz/nvim-dap-go",
|
||||
config = function()
|
||||
require("dap-go").setup {
|
||||
-- Additional dap configurations can be added.
|
||||
-- dap_configurations accepts a list of tables where each entry
|
||||
-- represents a dap configuration. For more details do:
|
||||
-- :help dap-configuration
|
||||
dap_configurations = {
|
||||
{
|
||||
-- Must be "go" or it will be ignored by the plugin
|
||||
type = "go",
|
||||
name = "Attach remote",
|
||||
mode = "remote",
|
||||
request = "attach",
|
||||
},
|
||||
},
|
||||
-- delve configurations
|
||||
delve = {
|
||||
-- time to wait for delve to initialize the debug session.
|
||||
-- default to 20 seconds
|
||||
initialize_timeout_sec = 20,
|
||||
-- a string that defines the port to start delve debugger.
|
||||
-- default to string "${port}" which instructs nvim-dap
|
||||
-- to start the process in a random available port
|
||||
port = "${port}",
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
Reference in New Issue
Block a user