From 61191dd4bf71e53cbdde1bc08bb10489c7c4831d Mon Sep 17 00:00:00 2001 From: JINNOUCHI Yasushi Date: Wed, 12 Mar 2025 04:57:38 +0900 Subject: [PATCH] feat: remove logic for unsupported older Neovim (#4921) See #4872 Now we no longer support Neovim 0.6 or older, we can remove logic in Lua code for supporting it. --- lua/ale/diagnostics.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lua/ale/diagnostics.lua b/lua/ale/diagnostics.lua index baec4e0a..93f94859 100644 --- a/lua/ale/diagnostics.lua +++ b/lua/ale/diagnostics.lua @@ -68,13 +68,7 @@ module.sendAleResultsToDiagnostics = function(buffer, loclist) if set_signs == 1 and sign_priority then -- If signs are enabled, set the priority for them. local local_cfg = { priority = sign_priority } - -- NOTE: vim.diagnostic.config() -- retrieving the current config values - -- fails in Neovim older than v0.7.0. - local ok, diag_cfg = pcall(vim.diagnostic.config) - if not ok or not diag_cfg then - diag_cfg = { signs = {} } - end - local global_cfg = diag_cfg.signs + local global_cfg = vim.diagnostic.config().signs if type(global_cfg) == 'boolean' then signs = local_cfg