mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-21 02:55:09 +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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if lsp.provider ~= nil and lsp.provider ~= "" then
|
||||||
local lspconfig = require "lspconfig"
|
local lspconfig = require "lspconfig"
|
||||||
lspconfig[lsp.provider].setup(lsp.setup)
|
lspconfig[lsp.provider].setup(lsp.setup)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
Loading…
Reference in a new issue