mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix(diagnostic): only set default handler config if unset
This commit is contained in:
parent
984270c09f
commit
8a27205d09
@ -30,7 +30,7 @@ M.handlers = setmetatable({}, {
|
||||
__newindex = function(t, name, handler)
|
||||
vim.validate { handler = {handler, "t" } }
|
||||
rawset(t, name, handler)
|
||||
if not global_diagnostic_options[name] then
|
||||
if global_diagnostic_options[name] == nil then
|
||||
global_diagnostic_options[name] = true
|
||||
end
|
||||
end,
|
||||
|
Loading…
Reference in New Issue
Block a user