mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
fix(diagnostic): only set default handler config if unset
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user