[nvim] fix: lsp installation dir variable

this is now a global variable
This commit is contained in:
David JULIEN 2022-12-02 16:12:44 +01:00
parent fa919171a2
commit 47cc2a3694
2 changed files with 3 additions and 2 deletions

View File

@ -6,8 +6,7 @@
local M = {}
local lsp_root_path = vim.fn.stdpath("data") .. "/lsp_servers/"
local clangd_binary = lsp_root_path .. "clangd/clangd/bin/clangd"
local clangd_binary = _G.lsp_root_dir .. "clangd/clangd/bin/clangd"
M.setup = function(opts)
opts.settings = {

View File

@ -70,6 +70,8 @@ mason.setup({
}
})
_G.lsp_root_dir = vim.fn.stdpath("data") .. "/mason/bin"
mason_lspconfig.setup({
ensure_installed = servers,
})