mirror of
https://github.com/neovim/neovim.git
synced 2025-12-10 08:32:42 +00:00
fix(diagnostic): allow setting arbitrary config values
This commit is contained in:
@@ -611,10 +611,8 @@ function M.config(opts, namespace)
|
|||||||
t = global_diagnostic_options
|
t = global_diagnostic_options
|
||||||
end
|
end
|
||||||
|
|
||||||
for opt in pairs(global_diagnostic_options) do
|
for k, v in pairs(opts) do
|
||||||
if opts[opt] ~= nil then
|
t[k] = v
|
||||||
t[opt] = opts[opt]
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if namespace then
|
if namespace then
|
||||||
|
|||||||
Reference in New Issue
Block a user