aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/servers/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim-lsp-installer/servers/init.lua')
-rw-r--r--lua/nvim-lsp-installer/servers/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/nvim-lsp-installer/servers/init.lua b/lua/nvim-lsp-installer/servers/init.lua
index 6124ba5a..64359520 100644
--- a/lua/nvim-lsp-installer/servers/init.lua
+++ b/lua/nvim-lsp-installer/servers/init.lua
@@ -116,7 +116,7 @@ local function scan_server_roots()
return cached_server_roots
end
local result = {}
- local ok, entries = pcall(fs.readdir, path.SERVERS_ROOT_DIR)
+ local ok, entries = pcall(fs.readdir, settings.current.install_root_dir)
if not ok then
-- presume servers root dir has not been created yet (i.e., no servers installed)
return {}
@@ -139,7 +139,7 @@ local function get_server_install_dir(server_name)
end
function M.get_server_install_path(dirname)
- return path.concat { path.SERVERS_ROOT_DIR, dirname }
+ return path.concat { settings.current.install_root_dir, dirname }
end
function M.is_server_installed(server_name)