Skip to content

Commit f3459cf

Browse files
committed
fix: include user in todo-comments
1 parent ec3d044 commit f3459cf

File tree

1 file changed

+5
-20
lines changed

1 file changed

+5
-20
lines changed

lua/plugins/todo-comments.lua

+5-20
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,15 @@ return {
1717
PERF = { icon = "󰅒 ", alt = { "OPTIM", "PERFORMANCE", "OPTIMIZE" } },
1818
-- NOTE: This note
1919
NOTE = { icon = "󰍩 ", color = "hint", alt = { "INFO", "HINT" } },
20-
-- TEST: This note
20+
-- TEST(hello): This note
2121
TEST = { icon = "", color = "test", alt = { "TESTING", "PASSED", "FAILED" } },
2222
},
23-
merge_keywords = true, -- when true, custom keywords will be merged with the defaults
2423
-- list of highlight groups or use the hex color if hl not found as a fallback
25-
colors = {
26-
error = { "DiagnosticError", "ErrorMsg", "#DC2626" },
27-
warning = { "DiagnosticWarn", "WarningMsg", "#FBBF24" },
28-
info = { "DiagnosticInfo", "#2563EB" },
29-
hint = { "DiagnosticHint", "#10B981" },
30-
default = { "Identifier", "#7C3AED" },
31-
test = { "Identifier", "#FF00FF" },
32-
},
3324
highlight = {
34-
multiline = true, -- enable multine todo comments
35-
multiline_pattern = "^.", -- lua pattern to match the next multiline from the start of the matched keyword
36-
multiline_context = 10, -- extra lines that will be re-evaluated when changing a line
37-
before = "", -- "fg" or "bg" or empty
38-
keyword = "wide", -- "fg", "bg", "wide", "wide_bg", "wide_fg" or empty.
39-
after = "fg", -- "fg" or "bg" or empty
40-
pattern = [[.*<(KEYWORDS)\s*:]], -- pattern or table of patterns, used for highlighting (vim regex)
41-
comments_only = true, -- uses treesitter to match keywords in comments only
42-
max_line_len = 400, -- ignore lines longer than this
43-
exclude = {}, -- list of file types to exclude highlighting
25+
after = "",
26+
keyword = "bg",
27+
multiline = false,
28+
pattern = [[.*<((KEYWORDS)\s*(.*)?\s*:)]],
4429
},
4530
},
4631
keys = {

0 commit comments

Comments
 (0)