diff options
| author | Hirokazu Hata <h.hata.ai.t@gmail.com> | 2020-03-21 14:39:45 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-21 14:39:45 +0900 |
| commit | 00ed3bca686ce579888775e6ac9f2c14d2b0dfa0 (patch) | |
| tree | a4b917f1a56358aa48e75764558301b6c1a66465 | |
| parent | [docgen] Update README.md (diff) | |
| parent | fix: require target language server module before LspInstall and LspInstallInfo (diff) | |
| download | nvim-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.lua | 6 |
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) |
