Include : in highlight patterns
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user