feat(diagnostics): clean up virtual text formatting
This commit is contained in:
parent
3fd2ede233
commit
f27a5efeda
1 changed files with 2 additions and 6 deletions
|
@ -6,13 +6,9 @@ local function format_diagnostic(diagnostic)
|
|||
local icon = icons.error
|
||||
if diagnostic.severity == vim.diagnostic.severity.WARN then
|
||||
icon = icons.warn
|
||||
end
|
||||
|
||||
if diagnostic.severity == vim.diagnostic.severity.INFO then
|
||||
elseif diagnostic.severity == vim.diagnostic.severity.INFO then
|
||||
icon = icons.info
|
||||
end
|
||||
|
||||
if diagnostic.severity == vim.diagnostic.severity.HINT then
|
||||
elseif diagnostic.severity == vim.diagnostic.severity.HINT then
|
||||
icon = icons.hint
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue