Skip to content

Commit

Permalink
fix(diagnostic): only set default handler config if unset
Browse files Browse the repository at this point in the history
  • Loading branch information
gpanders committed Jan 11, 2022
1 parent 984270c commit 8a27205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/lua/vim/diagnostic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8a27205

Please sign in to comment.