From d52d57f5d576c04893b364e37e82df0df9ad8d2b Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Wed, 15 Nov 2023 09:22:17 -0800 Subject: [PATCH] Indicate min nvim version along side lspconfig version --- neovim/lua/plugins/lsp.lua | 2 +- neovim/lua/plugins/null-ls/init.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/neovim/lua/plugins/lsp.lua b/neovim/lua/plugins/lsp.lua index e37af47..c0f2eb6 100644 --- a/neovim/lua/plugins/lsp.lua +++ b/neovim/lua/plugins/lsp.lua @@ -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) diff --git a/neovim/lua/plugins/null-ls/init.lua b/neovim/lua/plugins/null-ls/init.lua index 7a239d6..8d24385 100644 --- a/neovim/lua/plugins/null-ls/init.lua +++ b/neovim/lua/plugins/null-ls/init.lua @@ -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)