use has(win32) func to detect windows #2690
This commit is contained in:
parent
259274a624
commit
cf1db9821a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user