Use vim.fn.has instead.

This commit is contained in:
Per Malmberg 2024-05-10 18:18:03 +02:00
parent 1db3116640
commit 4a64dc1449
1 changed files with 3 additions and 2 deletions

View File

@ -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,