use has(win32) func to detect windows #2690

This commit is contained in:
siduck 2024-03-10 20:00:40 +05:30
parent 259274a624
commit cf1db9821a

View File

@ -55,5 +55,5 @@ vim.g["loaded_perl_provider"] = 0
vim.g["loaded_ruby_provider"] = 0
-- add binaries installed by mason.nvim to path
local is_windows = vim.loop.os_uname().sysname == "Windows_NT"
local is_windows = vim.fn.has("win32") ~= 0
vim.env.PATH = vim.fn.stdpath "data" .. "/mason/bin" .. (is_windows and ";" or ":") .. vim.env.PATH