diff options
| author | Per Malmberg <PerMalmberg@users.noreply.github.com> | 2024-05-10 19:43:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-10 13:43:22 -0400 |
| commit | 021dafa2d61cdbe6d38ea2357d71dc63f64a38ec (patch) | |
| tree | d61c12de79c022b7365da2e2511c253258353e3c /nvim/lua/kickstart | |
| parent | 71de8d408c0665b703ddb6a35f33a899601eb1aa (diff) | |
| download | dots-021dafa2d61cdbe6d38ea2357d71dc63f64a38ec.tar.gz | |
Automatically set detached state as needed. (#925)
* Automatically set detached state as needed.
* Use vim.fn.has instead.
* Fix int vs bool.
Diffstat (limited to 'nvim/lua/kickstart')
| -rw-r--r-- | nvim/lua/kickstart/plugins/debug.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nvim/lua/kickstart/plugins/debug.lua b/nvim/lua/kickstart/plugins/debug.lua index d4d1465..31dfecf 100644 --- a/nvim/lua/kickstart/plugins/debug.lua +++ b/nvim/lua/kickstart/plugins/debug.lua @@ -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, } |