update settings

This commit is contained in:
Gustavo Silva (es00679121_prosegur) 2023-07-26 21:11:04 +02:00
parent ab0d9c600b
commit f92189bc70
8 changed files with 164 additions and 47 deletions

View file

@ -33,7 +33,36 @@ return {
local dap_go = require 'dap-go'
-- Install golang specific config
dap_go.setup()
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 = {
-- the path to the executable dlv which will be used for debugging.
-- by default, this is the "dlv" executable on your PATH.
path = "dlv",
-- 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}",
-- additional args to pass to dlv
args = {}
},
}
-- Dap UI setup
-- For more information, see |:help nvim-dap-ui|
@ -94,6 +123,5 @@ return {
dap.listeners.after.event_initialized['dapui_config'] = dapui.open
dap.listeners.before.event_terminated['dapui_config'] = dapui.close
dap.listeners.before.event_exited['dapui_config'] = dapui.close
end,
}