Skip to content

Commit

Permalink
fix: include user in todo-comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aarondill committed Aug 2, 2024
1 parent ec3d044 commit f3459cf
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions lua/plugins/todo-comments.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,15 @@ return {
PERF = { icon = "󰅒 ", alt = { "OPTIM", "PERFORMANCE", "OPTIMIZE" } },
-- NOTE: This note
NOTE = { icon = "󰍩 ", color = "hint", alt = { "INFO", "HINT" } },
-- TEST: This note
-- TEST(hello): This note
TEST = { icon = "", color = "test", alt = { "TESTING", "PASSED", "FAILED" } },
},
merge_keywords = true, -- when true, custom keywords will be merged with the defaults
-- list of highlight groups or use the hex color if hl not found as a fallback
colors = {
error = { "DiagnosticError", "ErrorMsg", "#DC2626" },
warning = { "DiagnosticWarn", "WarningMsg", "#FBBF24" },
info = { "DiagnosticInfo", "#2563EB" },
hint = { "DiagnosticHint", "#10B981" },
default = { "Identifier", "#7C3AED" },
test = { "Identifier", "#FF00FF" },
},
highlight = {
multiline = true, -- enable multine todo comments
multiline_pattern = "^.", -- lua pattern to match the next multiline from the start of the matched keyword
multiline_context = 10, -- extra lines that will be re-evaluated when changing a line
before = "", -- "fg" or "bg" or empty
keyword = "wide", -- "fg", "bg", "wide", "wide_bg", "wide_fg" or empty.
after = "fg", -- "fg" or "bg" or empty
pattern = [[.*<(KEYWORDS)\s*:]], -- pattern or table of patterns, used for highlighting (vim regex)
comments_only = true, -- uses treesitter to match keywords in comments only
max_line_len = 400, -- ignore lines longer than this
exclude = {}, -- list of file types to exclude highlighting
after = "",
keyword = "bg",
multiline = false,
pattern = [[.*<((KEYWORDS)\s*(.*)?\s*:)]],
},
},
keys = {
Expand Down

0 comments on commit f3459cf

Please sign in to comment.