todo-comments colors and icons

This commit is contained in:
Christoph J. Scherr 2024-01-21 20:30:59 +01:00
parent ff9cb1a983
commit 1e97e6b64e
Signed by: PlexSheep
GPG Key ID: 7CDD0B14851A08EF
1 changed files with 17 additions and 7 deletions

View File

@ -213,15 +213,25 @@ local plugins = {
icon = "", -- icon used for the sign, and in search results
color = "error", -- can be a hex color, or a named color (see below)
alt = { "FIXME", "BUG", "FIXIT", "ISSUE" }, -- a set of other keywords that all map to this FIX keywords
-- signs = false, -- configure signs for some keywords individually
},
TODO = { icon = "", color = "info" },
HACK = { icon = "", color = "#ff33ff" },
SECURITY = { icon = "󰒃 ", color = "#ff6600" },
TODO = { icon = "", color = "todo" },
HACK = { icon = "", color = "hack" },
SECURITY = { icon = "󰒃 ", color = "security" },
WARN = { icon = "", color = "warning", alt = { "WARNING", "XXX" } },
PERF = { icon = "", alt = { "OPTIM", "PERFORMANCE", "OPTIMIZE" } },
NOTE = { icon = "", color = "hint", alt = { "INFO" } },
TEST = { icon = "", color = "#e6e600", alt = { "TESTING", "PASSED", "FAILED" } },
PERF = { icon = "", color = "perf", alt = { "OPTIM", "PERFORMANCE", "OPTIMIZE" } },
NOTE = { icon = "", color = "hint", alt = { "INFO" } },
TEST = { icon = "", color = "test", alt = { "TESTING", "PASSED", "FAILED" } },
},
colors = {
error = { "DiagnosticError", "ErrorMsg", "#DC2626" },
warning = { "DiagnosticWarn", "WarningMsg", "#FBBF24" },
todo = { "DiagnosticTodo", "#80e64d" },
hint = { "DiagnosticHint", "#10B981" },
hack = { "DiagnosticHack", "#FF33FF" },
security = { "DiagnosticSecurity", "#FF6600" },
default = { "Identifier", "#7C3AED" },
test = { "DiagnosticTest", "#E6E600" },
perf = { "DiagnosticPerf", "#9999ff" },
},
},
},