Skip to content

Commit 5aeddfd

Browse files
authored
Automatically set detached state as needed. (#925)
* Automatically set detached state as needed. * Use vim.fn.has instead. * Fix int vs bool.
1 parent b9bd02d commit 5aeddfd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lua/kickstart/plugins/debug.lua

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ return {
8585
dap.listeners.before.event_exited['dapui_config'] = dapui.close
8686

8787
-- Install golang specific config
88-
require('dap-go').setup()
88+
require('dap-go').setup {
89+
delve = {
90+
-- On Windows delve must be run attached or it crashes.
91+
-- See https://github.com/leoluz/nvim-dap-go/blob/main/README.md#configuring
92+
detached = vim.fn.has 'win32' == 0,
93+
},
94+
}
8995
end,
9096
}

0 commit comments

Comments
 (0)