diff --git a/lua/core/init.lua b/lua/core/init.lua index 8d19174..4abbdc4 100644 --- a/lua/core/init.lua +++ b/lua/core/init.lua @@ -57,7 +57,7 @@ for _, provider in ipairs { "node", "perl", "python3", "ruby" } do end -- 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 -------------------------------------- autocmds ------------------------------------------