diff options
author | Gregory Anders <greg@gpanders.com> | 2022-01-11 16:44:07 -0700 |
---|---|---|
committer | Gregory Anders <greg@gpanders.com> | 2022-01-11 16:44:07 -0700 |
commit | 8a27205d09405b9b040f0122e2adbd22fc29d498 (patch) | |
tree | 96a2a5ebfaa60e458326ce2d29b0f788518723c2 /runtime/lua/vim/diagnostic.lua | |
parent | 984270c09f628415f99e576c64e93041731a8ba6 (diff) | |
download | rneovim-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.lua | 2 |
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, |