From 1ee18b5df5c2eafed7ee686d2ed156b5d2bae3e3 Mon Sep 17 00:00:00 2001 From: Thomas Tan Date: Sat, 22 Jun 2024 08:39:06 -0700 Subject: [PATCH] (Windows) Make slashes in path to Mason's bin dir consistent (#2877) --- lua/nvchad/options.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/nvchad/options.lua b/lua/nvchad/options.lua index c1e5526c..f3c722d9 100644 --- a/lua/nvchad/options.lua +++ b/lua/nvchad/options.lua @@ -56,4 +56,6 @@ g["loaded_ruby_provider"] = 0 -- add binaries installed by mason.nvim to path local is_windows = vim.fn.has("win32") ~= 0 -vim.env.PATH = vim.fn.stdpath "data" .. "/mason/bin" .. (is_windows and ";" or ":") .. vim.env.PATH +local sep = is_windows and "\\" or "/" +local delim = is_windows and ";" or ":" +vim.env.PATH = table.concat({vim.fn.stdpath "data", "mason", "bin"}, sep) .. delim .. vim.env.PATH