[nvim] fix: lsp installation dir variable
this is now a global variable
This commit is contained in:
parent
fa919171a2
commit
47cc2a3694
@ -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 = {
|
||||
|
@ -70,6 +70,8 @@ mason.setup({
|
||||
}
|
||||
})
|
||||
|
||||
_G.lsp_root_dir = vim.fn.stdpath("data") .. "/mason/bin"
|
||||
|
||||
mason_lspconfig.setup({
|
||||
ensure_installed = servers,
|
||||
})
|
||||
|
Reference in New Issue
Block a user