Indicate min nvim version along side lspconfig version

This commit is contained in:
ViViDboarder 2023-11-15 09:22:17 -08:00
parent dac42c039a
commit d52d57f5d5
2 changed files with 2 additions and 2 deletions

View File

@ -339,7 +339,7 @@ function M.config_lsp()
if lsp_config["util"] and lsp_config.util["available_servers"] then
already_setup = lsp_config.util.available_servers()
else
-- HACK: For lspconfig versions lower than 0.1.4
-- HACK: For lspconfig versions lower than 0.1.4, which is required for nvim <0.7.0
already_setup = lsp_config.available_servers()
end
local needs_setup = vim.tbl_filter(function(server)

View File

@ -9,7 +9,7 @@ local function disable_formatter_filetypes_for_existing_servers(sources, preserv
if lsp_config["util"] and lsp_config.util["available_servers"] then
available_servers = lsp_config.util.available_servers()
else
-- HACK: For lspconfig versions lower than 0.1.4
-- HACK: For lspconfig versions lower than 0.1.4, which is required for nvim <0.7.0
available_servers = lsp_config.available_servers()
end
vim.tbl_map(function(server)