mirror of
https://github.com/neovim/neovim.git
synced 2025-12-17 11:55:34 +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)
|
__newindex = function(t, name, handler)
|
||||||
vim.validate { handler = {handler, "t" } }
|
vim.validate { handler = {handler, "t" } }
|
||||||
rawset(t, name, handler)
|
rawset(t, name, handler)
|
||||||
if not global_diagnostic_options[name] then
|
if global_diagnostic_options[name] == nil then
|
||||||
global_diagnostic_options[name] = true
|
global_diagnostic_options[name] = true
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|||||||
Reference in New Issue
Block a user