From 80ad56a2b1ee3edac9d96d81be09fbdfdb4c124b Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Mon, 17 Jun 2024 09:55:50 -0700 Subject: [PATCH] Remove old lspconfig hack --- neovim/lua/plugins/null-ls/init.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/neovim/lua/plugins/null-ls/init.lua b/neovim/lua/plugins/null-ls/init.lua index 8d24385..5868d43 100644 --- a/neovim/lua/plugins/null-ls/init.lua +++ b/neovim/lua/plugins/null-ls/init.lua @@ -6,12 +6,7 @@ local function disable_formatter_filetypes_for_existing_servers(sources, preserv local server_filetypes = {} utils.try_require("lspconfig", function(lsp_config) local available_servers - 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, which is required for nvim <0.7.0 - available_servers = lsp_config.available_servers() - end + available_servers = lsp_config.util.available_servers() vim.tbl_map(function(server) if lsp_config[server].filetypes ~= nil then vim.list_extend(server_filetypes, lsp_config[server].filetypes)