2024-04-06 03:03:58 +03:00
|
|
|
{ ... }: {
|
|
|
|
text = ''
|
|
|
|
require("todo-comments").setup {
|
|
|
|
sign_priority = 8,
|
|
|
|
signs = false,
|
|
|
|
keywords = {
|
2024-08-16 06:22:56 +03:00
|
|
|
FIX = { icon = " ", color = "error", alt = { "FIXME", "BUG", "FIXIT", "ISSUE" }, },
|
|
|
|
HACK = { icon = " ", color = "warning", alt = { "WTF", "LOL", "KEKW" } },
|
|
|
|
LINK = { icon = " ", color = "info", alt = { "REF", "SEE", "MORE", "ALSO", "SOURCE", "SRC" } },
|
|
|
|
NOTE = { icon = " ", color = "hint", alt = { "INFO" } },
|
|
|
|
PERF = { icon = " ", color = "default", alt = { "OPTIM", "PERFORMANCE", "OPTIMIZE" } },
|
|
|
|
TEST = { icon = "⏲ ", color = "test", alt = { "TESTING", "PASSED", "FAILED" } },
|
|
|
|
TODO = { icon = " ", color = "info", alt = { "LATER", "FUTURE", "ROADMAP" }},
|
2024-04-06 03:03:58 +03:00
|
|
|
WARN = { icon = " ", color = "warning", alt = { "WARNING", "XXX" } },
|
|
|
|
},
|
|
|
|
gui_style = {
|
|
|
|
bg = "BOLD",
|
|
|
|
fg = "NONE",
|
|
|
|
},
|
|
|
|
merge_keywords = true,
|
|
|
|
highlight = {
|
|
|
|
after = "fg",
|
|
|
|
before = "",
|
|
|
|
comments_only = true,
|
|
|
|
exclude = {},
|
|
|
|
keyword = "wide",
|
|
|
|
max_line_len = 400,
|
|
|
|
multiline = true,
|
|
|
|
multiline_context = 10,
|
|
|
|
multiline_pattern = "^.",
|
|
|
|
pattern = [[.*<(KEYWORDS)\s*:]],
|
|
|
|
},
|
|
|
|
colors = {
|
2024-08-16 06:22:56 +03:00
|
|
|
default = { "Identifier", "#7C3AED" },
|
|
|
|
error = { "DiagnosticError", "ErrorMsg", "#DC2626" },
|
|
|
|
hint = { "DiagnosticHint", "#10B981" },
|
|
|
|
info = { "DiagnosticInfo", "#2563EB" },
|
|
|
|
test = { "Identifier", "#FF00FF" },
|
|
|
|
warning = { "DiagnosticWarn", "WarningMsg", "#FBBF24" },
|
2024-04-06 03:03:58 +03:00
|
|
|
},
|
|
|
|
search = {
|
|
|
|
command = "rg",
|
|
|
|
args = {
|
|
|
|
"--color=never",
|
|
|
|
"--no-heading",
|
|
|
|
"--with-filename",
|
|
|
|
"--line-number",
|
|
|
|
"--column",
|
|
|
|
},
|
|
|
|
pattern = [[\b(KEYWORDS):]],
|
|
|
|
},
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
}
|