fix(diagnostic): only set default handler config if unset

This commit is contained in:
Gregory Anders 2022-01-11 16:44:07 -07:00
parent 984270c09f
commit 8a27205d09

View File

@ -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,