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
|
local icon = icons.error
|
||||||
if diagnostic.severity == vim.diagnostic.severity.WARN then
|
if diagnostic.severity == vim.diagnostic.severity.WARN then
|
||||||
icon = icons.warn
|
icon = icons.warn
|
||||||
end
|
elseif diagnostic.severity == vim.diagnostic.severity.INFO then
|
||||||
|
|
||||||
if diagnostic.severity == vim.diagnostic.severity.INFO then
|
|
||||||
icon = icons.info
|
icon = icons.info
|
||||||
end
|
elseif diagnostic.severity == vim.diagnostic.severity.HINT then
|
||||||
|
|
||||||
if diagnostic.severity == vim.diagnostic.severity.HINT then
|
|
||||||
icon = icons.hint
|
icon = icons.hint
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue