feat/pack #1

Merged
tomas.mirchev merged 9 commits from feat/pack into main 2025-10-26 04:18:15 +00:00
Showing only changes of commit e07337d3ed - Show all commits

View File

@ -166,19 +166,18 @@ function M.generate_specs(specs_raw)
install_spec.add(spec.lsp, 'code_tools')
local resolved_lsps = {}
for _, lsp_name in ipairs(wrap(spec.lsp)) do
if registry and registry.has_package(lsp_name) then
local pkg = registry.get_package(lsp_name)
for _, language_server in ipairs(wrap(spec.lsp)) do
if registry.has_package(language_server) then
local pkg = registry.get_package(language_server)
if pkg.spec and pkg.spec.neovim and pkg.spec.neovim.lspconfig then
local lspconfig = pkg.spec and pkg.spec.neovim and pkg.spec.neovim.lspconfig
lsp_name = lspconfig
lsp_map[lspconfig] = lsp_name
table.insert(resolved_lsps, lsp_name)
local lspconfig_name = pkg.spec and pkg.spec.neovim and pkg.spec.neovim.lspconfig
lsp_map[lspconfig_name] = language_server
table.insert(resolved_lsps, lspconfig_name)
else
print('Package found but not lsp name: ' .. lsp_name)
print('Package found but not lspconfig name: ' .. language_server)
end
else
print('Package not found: ' .. lsp_name)
print('Package not found: ' .. language_server)
end
end
specs.add(resolved_lsps, 'language_servers')