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 committed May 10, 2024
1 parent b9bd02d commit 5aeddfd
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 @@ -85,6 +85,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 5aeddfd

Please sign in to comment.