-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtodo-comments.lua
More file actions
46 lines (46 loc) · 1.86 KB
/
todo-comments.lua
File metadata and controls
46 lines (46 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
return {
"folke/todo-comments.nvim",
opts = {
keywords = {
TODO = { icon = " ", color = "#ddc445", alt = { "TASK", "TASKS", "OBJECTIVE", "OBJECTIVES" } },
IDEA = { icon = " ", color = "#31bd3f", alt = { "IDEAS" } },
COMMENT = { icon = " ", color = "#31bd3f", alt = { "COMMENTS" } },
DONE = {
icon = " ",
color = "#53846b",
alt = {
"DECISIONS-MADE",
"DECISION-MADE",
"QUESTIONS-ANSWERED",
"QUESTION-ANSWERED",
"OBJECTIVE-MET",
"OBJECTIVES-MET",
"COMMENT-RESOLVED",
"COMMENTS-RESOLVED",
},
},
CHOICE = { icon = " ", color = "#ab4af7", alt = { "DECISION", "DECISIONS", "CHOICES" } },
QUESTION = { icon = " ", color = "#ab4af7", alt = { "QUESTIONS" } },
TENDRIL = { icon = " ", color = "#ab4af7", alt = { "TENDRILS" } },
HACK = { icon = " ", color = "#d13229", alt = { "HACKS" } },
WARN = { icon = " ", color = "#f5b74e", alt = { "WARNING", "WARNINGS", "XXX" } },
NOTE = { icon = " ", color = "#7395ef", alt = { "NOTES", "INFO" } },
TEST = { icon = " ", color = "#ddc445", alt = { "TESTING", "CONFIRM" } },
PASSED = { icon = " ", color = "#31bd3f", alt = { "CONFIRMED" } },
PERF = { alt = {} },
FIX = {
icon = " ", -- icon used for the sign, and in search results
color = "#d13229", -- can be a hex color, or a named color (see below)
alt = { "FIXME", "BUG", "FIXIT", "ISSUE", "FAILED" }, -- a set of other keywords that all map to this FIX keywords
-- signs = false, -- configure signs for some keywords individually
},
},
search = { pattern = [[\b(KEYWORDS).*:]] },
highlight = {
keyword = "bg",
after = "fg",
pattern = [[.*(KEYWORDS).*:]],
comments_only = false,
},
},
}