This commit is contained in:
asep komarudin 2023-02-19 17:46:32 +07:00
parent c20896f0a4
commit cc5c9ed8d0
3 changed files with 21 additions and 3 deletions

View file

@ -9,6 +9,14 @@ local lspconfig = require("lspconfig")
-- local servers = { "jdtls", "yamlls" }
local servers = {}
local data_exists, custom_lsp = pcall(require, "custom.lsp_installer")
if data_exists then
for _, client in pairs(custom_lsp.lspinstall) do
table.insert(servers, client)
end
end
lsp_installer.setup({
ensure_installed = servers,
})