Use vim.fn.has instead.
This commit is contained in:
parent
1db3116640
commit
4a64dc1449
|
@ -87,8 +87,9 @@ return {
|
||||||
-- Install golang specific config
|
-- Install golang specific config
|
||||||
require('dap-go').setup {
|
require('dap-go').setup {
|
||||||
delve = {
|
delve = {
|
||||||
-- On Windows delve must not be run attached or it crashes.
|
-- On Windows delve must be run attached or it crashes.
|
||||||
detached = vim.loop.os_uname().sysname ~= 'Windows_NT',
|
-- See https://github.com/leoluz/nvim-dap-go/blob/main/README.md#configuring
|
||||||
|
detached = not vim.fn.has 'win32',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in New Issue