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:
parent
4745d25f86
commit
2ab78b05c3
3
init.lua
3
init.lua
|
|
@ -31,6 +31,9 @@ local modules = {
|
||||||
"core.packer",
|
"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
|
for _, module in ipairs(modules) do
|
||||||
local ok, err = pcall(require, module)
|
local ok, err = pcall(require, module)
|
||||||
if not ok then
|
if not ok then
|
||||||
|
|
|
||||||
Reference in New Issue