Skip to content

Commit

Permalink
fix(diagnostics): deepcopy diagnostic params. Fixes #621
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Apr 19, 2023
1 parent 3518c1d commit 1caa27b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazyvim/plugins/lsp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ return {
end
end

vim.diagnostic.config(opts.diagnostics)
vim.diagnostic.config(vim.deepcopy(opts.diagnostics))

local servers = opts.servers
local capabilities = require("cmp_nvim_lsp").default_capabilities(vim.lsp.protocol.make_client_capabilities())
Expand Down

0 comments on commit 1caa27b

Please sign in to comment.