mason installed binaries path appended to env.PATH

and here i was wondering why language servers installed from mason
werent working and i had to install them from my system's package
managers. BRUH.
This commit is contained in:
krolyxon 2023-01-09 12:30:15 +05:30
parent 4745d25f86
commit 2ab78b05c3
1 changed files with 3 additions and 0 deletions

View File

@ -31,6 +31,9 @@ local modules = {
"core.packer",
}
-- add binaries installed by mason.nvim to path
vim.env.PATH = vim.env.PATH .. ":" .. vim.fn.stdpath "data" .. "/mason/bin"
for _, module in ipairs(modules) do
local ok, err = pcall(require, module)
if not ok then