mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 18:45:08 +02:00
fix nil exception for langs without providers (#1290)
This commit is contained in:
parent
333b103425
commit
b26b61e304
1 changed files with 4 additions and 2 deletions
|
@ -140,8 +140,10 @@ function M.setup(lang)
|
|||
end
|
||||
end
|
||||
|
||||
if lsp.provider ~= nil and lsp.provider ~= "" then
|
||||
local lspconfig = require "lspconfig"
|
||||
lspconfig[lsp.provider].setup(lsp.setup)
|
||||
end
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
Loading…
Reference in a new issue