mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
refactor(diagnostic): combine config() and set() calls
This commit is contained in:
parent
15d501ff7a
commit
445ef41314
@ -202,11 +202,9 @@ function M.on_publish_diagnostics(_, result, ctx, config)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
vim.diagnostic.config(config, namespace)
|
||||
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.
|
||||
vim.api.nvim_command("doautocmd <nomodeline> User LspDiagnosticsChanged")
|
||||
|
Loading…
Reference in New Issue
Block a user