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
|
||||
Config.later(function()
|
||||
vim.diagnostic.config({
|
||||
jump = { on_jump = vim.diagnostic.open_float },
|
||||
signs = {
|
||||
priority = 9999,
|
||||
severity = { min = vim.diagnostic.severity.WARN, max = vim.diagnostic.severity.ERROR },
|
||||
severity = { min = vim.diagnostic.severity.WARN },
|
||||
text = {
|
||||
[vim.diagnostic.severity.ERROR] = '',
|
||||
[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_lines = false,
|
||||
virtual_text = {
|
||||
current_line = true,
|
||||
severity = { min = vim.diagnostic.severity.ERROR, max = vim.diagnostic.severity.ERROR },
|
||||
},
|
||||
update_in_insert = false,
|
||||
virtual_text = false,
|
||||
})
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user