We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 684d9eb commit 2898fd0Copy full SHA for 2898fd0
1 file changed
lua/cmake-tools/scanner.lua
@@ -71,7 +71,8 @@ local function derive_toolchain(prefix, c_name)
71
end
72
73
local function get_path_executables()
74
- local path_dirs = vim.split(vim.env.PATH or "", ":", { plain = true })
+ local separator = vim.uv.os_uname().sysname == "Windows_NT" and ";" or ":"
75
+ local path_dirs = vim.split(vim.env.PATH or "", separator, { plain = true })
76
local executables = {}
77
for _, dir in ipairs(path_dirs) do
78
local entries = vim.fn.readdir(dir)
0 commit comments