mirror of
https://github.com/NvChad/NvChad.git
synced 2024-11-10 07:10:44 +00:00
(Windows) Make slashes in path to Mason's bin dir consistent (#2877)
This commit is contained in:
parent
f760ed9fb1
commit
1ee18b5df5
@ -56,4 +56,6 @@ g["loaded_ruby_provider"] = 0
|
|||||||
|
|
||||||
-- add binaries installed by mason.nvim to path
|
-- add binaries installed by mason.nvim to path
|
||||||
local is_windows = vim.fn.has("win32") ~= 0
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user