respect override table

This commit is contained in:
Chris 2021-08-01 15:13:56 -04:00
parent 72f5a54ec2
commit 0e05f05e9d
2 changed files with 18 additions and 0 deletions

View file

@ -73,6 +73,15 @@ function M.setup(lang)
return
end
local overrides = lvim.lsp.override
if type(overrides) == "table" then
if u.has_value(overrides, lang) then
return
end
end
local lspconfig = require "lspconfig"
lspconfig[lsp.provider].setup(lsp.setup)
end