Skip to content

Commit 944eeb0

Browse files
enable todo-comments
1 parent 874118f commit 944eeb0

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lua/modules/editor/config.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function config.todo()
129129
end
130130

131131
todo.setup({
132-
signs = false, -- show icons in the signs column
132+
signs = true, -- show icons in the signs column
133133
sign_priority = 8, -- sign priority
134134
-- keywords recognized as todo comments
135135
keywords = {
@@ -139,11 +139,11 @@ function config.todo()
139139
alt = { "FIXME", "BUG", "FIXIT", "ISSUE" }, -- a set of other keywords that all map to this FIX keywords
140140
-- signs = false, -- configure signs for some keywords individually
141141
},
142-
TODO = { icon = "", color = "info", alt = { "REVIST", "todo", "Todo", "TODO" } },
142+
TODO = { icon = "", color = "info", alt = { "REVIST", "TODO" } },
143143
HACK = { icon = "", color = "warning" },
144-
WARN = { icon = "", color = "warning", alt = { "WARNING", "XXX", "warning", "warn", "WARN", "Warn" } },
145-
PERF = { icon = "", alt = { "OPTIM", "PERFORMANCE", "OPTIMIZE", "optimize", "Optimize" } },
146-
NOTE = { icon = "", color = "hint", alt = { "INFO", "info", "Info" } },
144+
WARN = { icon = "", color = "warning", alt = { "WARNING", "XXX", "WARN" } },
145+
PERF = { icon = "", alt = { "OPTIM", "PERFORMANCE", "OPTIMIZE" } },
146+
NOTE = { icon = "", color = "hint", alt = { "INFO" } },
147147
},
148148
merge_keywords = true, -- when true, custom keywords will be merged with the defaults
149149
-- highlighting of the line containing the todo comment
@@ -152,7 +152,7 @@ function config.todo()
152152
-- * after: highlights after the keyword (todo text)
153153
highlight = {
154154
before = "", -- "fg" or "bg" or empty
155-
keyword = "fg", -- "fg", "bg", "wide" or empty. (wide is the same as bg, but will also highlight surrounding characters)
155+
keyword = "bg", -- "fg", "bg", "wide", "wide_bg", "wide_fg" or empty. (wide and wide_bg is the same as bg, but will also highlight surrounding characters, wide_fg acts accordingly but with fg)
156156
after = "fg", -- "fg" or "bg" or empty
157157
pattern = [[.*<(KEYWORDS)\s*:]], -- pattern or table of patterns, used for highlightng (vim regex)
158158
comments_only = true, -- uses treesitter to match keywords in comments only

lua/modules/editor/plugins.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ editor({
4747
})
4848

4949
editor({
50-
enabled = false,
50+
enabled = true,
5151
"folke/todo-comments.nvim",
5252
event = "VeryLazy",
5353
config = conf.todo,

0 commit comments

Comments
 (0)