better statusline icons

This commit is contained in:
Kulvir Singh
2025-03-14 09:26:55 +05:30
parent 3499cc0de8
commit db28d94007

View File

@@ -51,16 +51,16 @@ return {
local diagnostics = {} local diagnostics = {}
if buffer_diagnostics.errors > 0 then if buffer_diagnostics.errors > 0 then
table.insert(diagnostics, string.format(":%d", buffer_diagnostics.errors)) table.insert(diagnostics, string.format(" :%d", buffer_diagnostics.errors))
end end
if buffer_diagnostics.warnings > 0 then if buffer_diagnostics.warnings > 0 then
table.insert(diagnostics, string.format(":%d", buffer_diagnostics.warnings)) table.insert(diagnostics, string.format(" :%d", buffer_diagnostics.warnings))
end end
if buffer_diagnostics.info > 0 then if buffer_diagnostics.info > 0 then
table.insert(diagnostics, string.format(":%d", buffer_diagnostics.info)) table.insert(diagnostics, string.format(" :%d", buffer_diagnostics.info))
end end
if buffer_diagnostics.hints > 0 then if buffer_diagnostics.hints > 0 then
table.insert(diagnostics, string.format(":%d", buffer_diagnostics.hints)) table.insert(diagnostics, string.format(" :%d", buffer_diagnostics.hints))
end end
return table.concat(diagnostics, " ") return table.concat(diagnostics, " ")
end end