mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
refactor(diagnostic): combine config() and set() calls
This commit is contained in:
@@ -202,11 +202,9 @@ function M.on_publish_diagnostics(_, result, ctx, config)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.diagnostic.config(config, namespace)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.diagnostic.set(namespace, bufnr, diagnostic_lsp_to_vim(diagnostics, bufnr, client_id))
|
vim.diagnostic.set(namespace, bufnr, diagnostic_lsp_to_vim(diagnostics, bufnr, client_id), config)
|
||||||
|
|
||||||
-- Keep old autocmd for back compat. This should eventually be removed.
|
-- Keep old autocmd for back compat. This should eventually be removed.
|
||||||
vim.api.nvim_command("doautocmd <nomodeline> User LspDiagnosticsChanged")
|
vim.api.nvim_command("doautocmd <nomodeline> User LspDiagnosticsChanged")
|
||||||
|
Reference in New Issue
Block a user