Automatically set detached state as needed. (#925)

* Automatically set detached state as needed.

* Use vim.fn.has instead.

* Fix int vs bool.
This commit is contained in:
Per Malmberg 2024-05-10 19:43:22 +02:00 committed by GitHub
parent b9bd02d55b
commit 5aeddfdd5d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 1 deletions

View File

@ -85,6 +85,12 @@ return {
dap.listeners.before.event_exited['dapui_config'] = dapui.close dap.listeners.before.event_exited['dapui_config'] = dapui.close
-- Install golang specific config -- 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, end,
} }