aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHirokazu Hata <h.hata.ai.t@gmail.com>2020-03-21 14:39:45 +0900
committerGitHub <noreply@github.com>2020-03-21 14:39:45 +0900
commit00ed3bca686ce579888775e6ac9f2c14d2b0dfa0 (patch)
treea4b917f1a56358aa48e75764558301b6c1a66465
parent[docgen] Update README.md (diff)
parentfix: require target language server module before LspInstall and LspInstallInfo (diff)
downloadnvim-lspconfig-00ed3bca686ce579888775e6ac9f2c14d2b0dfa0.tar
nvim-lspconfig-00ed3bca686ce579888775e6ac9f2c14d2b0dfa0.tar.gz
nvim-lspconfig-00ed3bca686ce579888775e6ac9f2c14d2b0dfa0.tar.bz2
nvim-lspconfig-00ed3bca686ce579888775e6ac9f2c14d2b0dfa0.tar.lz
nvim-lspconfig-00ed3bca686ce579888775e6ac9f2c14d2b0dfa0.tar.xz
nvim-lspconfig-00ed3bca686ce579888775e6ac9f2c14d2b0dfa0.tar.zst
nvim-lspconfig-00ed3bca686ce579888775e6ac9f2c14d2b0dfa0.zip
Merge pull request #177 from h-michael/install
fix: require target language server module before LspInstall and LspI…
-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)