Include : in highlight patterns

This commit is contained in:
2026-02-03 18:05:22 +01:00
parent 4b4641f6a9
commit 8d273483ee

View File

@@ -101,10 +101,10 @@ Map('n', '<leader>sd', MiniExtra.pickers.diagnostic, { desc = "Search Diagnostic
require('mini.cursorword').setup() -- highlight words beneath the cursor
require('mini.hipatterns').setup({
highlighters = {
bug = { pattern = '%f[%w]()BUG()%f[%W]', group = '@comment.error' },
warn = { pattern = '%f[%w]()WARN()%f[%W]', group = '@comment.warning' },
todo = { pattern = '%f[%w]()TODO()%f[%W]', group = '@comment.todo' },
note = { pattern = '%f[%w]()NOTE()%f[%W]', group = '@comment.note' },
bug = { pattern = '%f[%w]()BUG:()%f[^%w:]', group = '@comment.error' },
warn = { pattern = '%f[%w]()WARN:()%f[^%w:]', group = '@comment.warning' },
todo = { pattern = '%f[%w]()TODO:()%f[^%w:]', group = '@comment.todo' },
note = { pattern = '%f[%w]()NOTE:()%f[^%w:]', group = '@comment.note' },
-- Highlight hex color strings (`#rrggbb`) using that color
-- hex_color = MiniHipatterns.gen_highlighter.hex_color(),