refactor: simplify diagnostics
This commit is contained in:
+3
-10
@@ -48,22 +48,15 @@ Config.autocmd('LspAttach', '*', function(ev) vim.bo[ev.buf].complete = 'o' end,
|
|||||||
-- Diagnostics
|
-- Diagnostics
|
||||||
Config.later(function()
|
Config.later(function()
|
||||||
vim.diagnostic.config({
|
vim.diagnostic.config({
|
||||||
|
jump = { on_jump = vim.diagnostic.open_float },
|
||||||
signs = {
|
signs = {
|
||||||
priority = 9999,
|
priority = 9999,
|
||||||
severity = { min = vim.diagnostic.severity.WARN, max = vim.diagnostic.severity.ERROR },
|
severity = { min = vim.diagnostic.severity.WARN },
|
||||||
text = {
|
text = {
|
||||||
[vim.diagnostic.severity.ERROR] = '',
|
[vim.diagnostic.severity.ERROR] = '',
|
||||||
[vim.diagnostic.severity.WARN] = '',
|
[vim.diagnostic.severity.WARN] = '',
|
||||||
[vim.diagnostic.severity.INFO] = '',
|
|
||||||
[vim.diagnostic.severity.HINT] = '',
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
underline = { severity = { min = vim.diagnostic.severity.HINT, max = vim.diagnostic.severity.ERROR } },
|
virtual_text = false,
|
||||||
virtual_lines = false,
|
|
||||||
virtual_text = {
|
|
||||||
current_line = true,
|
|
||||||
severity = { min = vim.diagnostic.severity.ERROR, max = vim.diagnostic.severity.ERROR },
|
|
||||||
},
|
|
||||||
update_in_insert = false,
|
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user