Added config for mini.hipatterns

This commit is contained in:
EsVagy42 2025-03-03 14:52:38 +00:00
parent d6bcdcf8ed
commit ae834311e4
3 changed files with 121 additions and 3 deletions

View file

@ -14,7 +14,7 @@
snippets = { };
splitjoin = { };
surround = { };
basics = {
basics = {
options = {
basic = true;
extra_ui = true;
@ -53,9 +53,7 @@
sessions = { };
visits = { };
animate = { };
colors = { };
cursorword = { };
hipatterns = { };
icons = { };
indentscope = { };
map = { };
@ -121,6 +119,20 @@ miniclue.setup({
scroll_up = '<C-u>';
},
})
local hipatterns = require('mini.hipatterns')
hipatterns.setup({
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(),
},
})
'';
};
};