fix(diagnostic): allow setting arbitrary config values

This commit is contained in:
Gregory Anders 2022-01-11 16:43:47 -07:00
parent fc8af96888
commit 984270c09f

View File

@ -611,10 +611,8 @@ function M.config(opts, namespace)
t = global_diagnostic_options
end
for opt in pairs(global_diagnostic_options) do
if opts[opt] ~= nil then
t[opt] = opts[opt]
end
for k, v in pairs(opts) do
t[k] = v
end
if namespace then