feat(mini): modularize the config a bit.

This commit is contained in:
CronyAkatsuki 2026-01-01 13:55:19 +01:00
parent 8d49f9b18d
commit 494ddcf985
9 changed files with 192 additions and 194 deletions

View file

@ -0,0 +1,12 @@
-- amazing highlight plugin, also used with mini.pick
local hipatterns = require("mini.hipatterns")
hipatterns.setup({
highlighters = {
fixme = { pattern = '%f[%w]()FIXME()%f[%W]', group = 'MiniHipatternsFixme' },
hack = { pattern = '%f[%w]()HACK()%f[%W]', group = 'MiniHipatternsHack' },
todo = { pattern = '%f[%w]()TODO()%f[%W]', group = 'MiniHipatternsTodo' },
note = { pattern = '%f[%w]()NOTE()%f[%W]', group = 'MiniHipatternsNote' },
hex_color = hipatterns.gen_highlighter.hex_color(),
},
})