Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dotfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Hensel
dotfiles
Commits
43451b1c
Commit
43451b1c
authored
7 months ago
by
Jan Hensel
Browse files
Options
Downloads
Patches
Plain Diff
nvim: update dap-go config to (new?) default
parent
a799c8ab
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.config/nvim/init.vim
+0
-1
0 additions, 1 deletion
.config/nvim/init.vim
.config/nvim/lua/plugins.lua
+40
-27
40 additions, 27 deletions
.config/nvim/lua/plugins.lua
with
40 additions
and
28 deletions
.config/nvim/init.vim
+
0
−
1
View file @
43451b1c
...
...
@@ -41,7 +41,6 @@ EOF
lua
require
(
'ztf.colorscheme'
).
apply
()
lua
require
(
"ztf.dap"
)
lua
require
(
'ztf.treesitter'
)
" ----- TODO: place somewhere sensible: ----------------------------------------
...
...
This diff is collapsed.
Click to expand it.
.config/nvim/lua/plugins.lua
+
40
−
27
View file @
43451b1c
...
...
@@ -81,10 +81,10 @@ local plugins = {
lazy
=
true
,
ft
=
'go'
,
opts
=
{
--
--
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
-- 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
...
...
@@ -94,31 +94,44 @@ local plugins = {
request
=
"attach"
,
},
},
-- delve configurations
delve
=
{
port
=
"38697"
,
-- 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.
-- if you set a port in your debug configuration, its value will be
-- assigned dynamically.
port
=
"${port}"
,
-- additional args to pass to dlv
args
=
{},
-- the build flags that are passed to delve.
-- defaults to empty string, but can be used to provide flags
-- such as "-tags=unit" to make sure the test suite is
-- compiled during debugging, for example.
-- passing build flags using args is ineffective, as those are
-- ignored by delve in dap mode.
-- avaliable ui interactive function to prompt for arguments get_arguments
build_flags
=
{},
-- whether the dlv process to be created detached or not. there is
-- an issue on Windows where this needs to be set to false
-- otherwise the dlv server creation will fail.
-- avaliable ui interactive function to prompt for build flags: get_build_flags
detached
=
vim
.
fn
.
has
(
"win32"
)
==
0
,
-- the current working directory to run dlv from, if other than
-- the current working directory.
cwd
=
nil
,
},
-- options related to running closest test
tests
=
{
-- enables verbosity when running the test.
verbose
=
false
,
},
-- -- 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 = {},
-- -- the build flags that are passed to delve.
-- -- defaults to empty string, but can be used to provide flags
-- -- such as "-tags=unit" to make sure the test suite is
-- -- compiled during debugging, for example.
-- -- passing build flags using args is ineffective, as those are
-- -- ignored by delve in dap mode.
-- build_flags = "",
-- },
},
dependencies
=
{
'mfussenegger/nvim-dap'
},
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment