diff --git a/lua/kickstart/plugins/debug.lua b/lua/kickstart/plugins/debug.lua index 7a13b9af..6b79eef8 100644 --- a/lua/kickstart/plugins/debug.lua +++ b/lua/kickstart/plugins/debug.lua @@ -87,8 +87,9 @@ return { -- Install golang specific config require('dap-go').setup { delve = { - -- On Windows delve must not be run attached or it crashes. - detached = vim.loop.os_uname().sysname ~= 'Windows_NT', + -- On Windows delve must be run attached or it crashes. + -- See https://github.com/leoluz/nvim-dap-go/blob/main/README.md#configuring + detached = not vim.fn.has 'win32', }, } end,