From cf1db9821a9bfe4e03eaa036fd791e55eae53117 Mon Sep 17 00:00:00 2001 From: siduck Date: Sun, 10 Mar 2024 20:00:40 +0530 Subject: [PATCH] use has(win32) func to detect windows #2690 --- lua/nvchad/options.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/nvchad/options.lua b/lua/nvchad/options.lua index 181987b..26350b7 100644 --- a/lua/nvchad/options.lua +++ b/lua/nvchad/options.lua @@ -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