-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtodo-comments.lua
More file actions
31 lines (31 loc) · 1.37 KB
/
todo-comments.lua
File metadata and controls
31 lines (31 loc) · 1.37 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
return {
"folke/todo-comments.nvim",
opts = {
keywords = {
TODO = { icon = " ", color = "#ddc445", alt = { "TASK", "OBJECTIVE" } },
IDEA = { icon = " ", color = "#31bd3f" },
DONE = { icon = " ", color = "#53846b", alt = { "DECISION-MADE", "QUESTION-ANSWERED", "OBJECTIVE-MET" } },
CHOICE = { icon = " ", color = "#ab4af7", alt = { "DECISION" } },
QUESTION = { icon = " ", color = "#ab4af7" },
HACK = { icon = " ", color = "#d13229" },
WARN = { icon = " ", color = "#f5b74e", alt = { "WARNING", "XXX" } },
NOTE = { icon = " ", color = "#ab4af7", alt = { "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,
},
},
}