aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/diagnostic.lua
diff options
context:
space:
mode:
authorGregory Anders <greg@gpanders.com>2022-01-11 16:44:07 -0700
committerGregory Anders <greg@gpanders.com>2022-01-11 16:44:07 -0700
commit8a27205d09405b9b040f0122e2adbd22fc29d498 (patch)
tree96a2a5ebfaa60e458326ce2d29b0f788518723c2 /runtime/lua/vim/diagnostic.lua
parent984270c09f628415f99e576c64e93041731a8ba6 (diff)
downloadrneovim-8a27205d09405b9b040f0122e2adbd22fc29d498.tar.gz
rneovim-8a27205d09405b9b040f0122e2adbd22fc29d498.tar.bz2
rneovim-8a27205d09405b9b040f0122e2adbd22fc29d498.zip
fix(diagnostic): only set default handler config if unset
Diffstat (limited to 'runtime/lua/vim/diagnostic.lua')
-rw-r--r--runtime/lua/vim/diagnostic.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/diagnostic.lua b/runtime/lua/vim/diagnostic.lua
index 1425de854a..4bf69a2d39 100644
--- a/runtime/lua/vim/diagnostic.lua
+++ b/runtime/lua/vim/diagnostic.lua
@@ -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,