mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 04:34:25 +08:00
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.
This commit is contained in:
committed by
GitHub
parent
e4a2bff0f2
commit
61191dd4bf
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user