diff options
author | Damjan 9000 <damjan.9000@gmail.com> | 2024-05-10 20:28:56 +0200 |
---|---|---|
committer | Damjan 9000 <damjan.9000@gmail.com> | 2024-05-10 20:28:56 +0200 |
commit | 01a18a193dfa1d5837faf0df669f1b06f4301f78 (patch) | |
tree | a79236113ac8ddbafd07c1e296be4f7e87da177f | |
parent | bd53ce0190b30cb4d60159516ab624cf4f55a4ac (diff) | |
parent | 5aeddfdd5d0308506ec63b0e4f8de33e2a39355f (diff) |
Merge 'upstream' debug.lua: Automatically set detached state as needed.
-rw-r--r-- | lua/kickstart/plugins/debug.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lua/kickstart/plugins/debug.lua b/lua/kickstart/plugins/debug.lua index d4d1465..31dfecf 100644 --- a/lua/kickstart/plugins/debug.lua +++ b/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, } |