From 8d273483ee86afd333e346ad36f0739c7281ba2c Mon Sep 17 00:00:00 2001 From: Quinn Date: Tue, 3 Feb 2026 18:05:22 +0100 Subject: [PATCH] Include : in highlight patterns --- .config/nvim/lua/plugin/mini.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.config/nvim/lua/plugin/mini.lua b/.config/nvim/lua/plugin/mini.lua index b58d38b..19235bc 100644 --- a/.config/nvim/lua/plugin/mini.lua +++ b/.config/nvim/lua/plugin/mini.lua @@ -101,10 +101,10 @@ Map('n', '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(),