Skip to content

Commit

Permalink
fix(diagnostic): allow setting arbitrary config values
Browse files Browse the repository at this point in the history
  • Loading branch information
gpanders committed Jan 11, 2022
1 parent fc8af96 commit 984270c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions runtime/lua/vim/diagnostic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 984270c

Please sign in to comment.