Skip to content

Commit

Permalink
Automatically set detached state as needed. (nvim-lua#925)
Browse files Browse the repository at this point in the history
* Automatically set detached state as needed.

* Use vim.fn.has instead.

* Fix int vs bool.
  • Loading branch information
PerMalmberg authored and tharakatennakoon committed Jun 22, 2024
1 parent 81176d1 commit 81d075b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lua/kickstart/plugins/debug.lua
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ return {
dap.listeners.before.event_exited['dapui_config'] = dapui.close

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

0 comments on commit 81d075b

Please sign in to comment.