add mini.nvim hipatterns

This commit is contained in:
Tony Blyler 2024-10-01 10:37:13 -04:00
parent 386191c764
commit 4e8fac0310
No known key found for this signature in database

View file

@ -154,11 +154,25 @@ end)
-- {{{ lazy -- {{{ lazy
later(function() later(function()
local hipatterns = require('mini.hipatterns')
local setups = { local setups = {
bufremove = {}, bufremove = {},
comment = {}, comment = {},
completion = {}, completion = {},
cursorword = {}, cursorword = {},
hipatterns = {
highlighters = {
-- Highlight standalone 'FIXME', 'HACK', 'TODO', 'NOTE'
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' },
-- Highlight hex color strings (`#rrggbb`) using that color
hex_color = hipatterns.gen_highlighter.hex_color(),
},
},
jump = {}, jump = {},
jump2d = {}, jump2d = {},
pairs = {}, pairs = {},