aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim_lsp.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/nvim_lsp.lua b/lua/nvim_lsp.lua
index f5c77305..2b9154ad 100644
--- a/lua/nvim_lsp.lua
+++ b/lua/nvim_lsp.lua
@@ -23,6 +23,9 @@ function M._root._setup()
M._root.commands = {
LspInstall = {
function(name)
+ if configs[name] == nil then
+ pcall(require('nvim_lsp/'..name))
+ end
local config = configs[name]
if not config then
return print("Invalid server name:", name)
@@ -50,6 +53,9 @@ function M._root._setup()
end
return print(vim.inspect(res))
end
+ if configs[name] == nil then
+ pcall(require('nvim_lsp/'..name))
+ end
local config = configs[name]
if not config then
return print("Invalid server name:", name)