Skip to content

Commit

Permalink
feat(nvim): add config for mini-hipatterns
Browse files Browse the repository at this point in the history
  • Loading branch information
KirkEasterson committed Nov 11, 2024
1 parent 6c04c68 commit 6c3f2a6
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions nvim/.config/nvim/lua/kirk/plugins/ui/mini-hipatterns.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
return {
"echasnovski/mini.hipatterns",
enabled = false,
event = {
"BufReadPre",
"BufNewFile",
},
opts = {},
config = function(_, opts)
local hipatterns = require("mini.hipatterns")
hipatterns.setup({
highlighters = {
fixme = { pattern = "FIXME", group = "MiniHipatternsFixme" },
hack = { pattern = "HACK", group = "MiniHipatternsHack" },
todo = { pattern = "TODO", group = "MiniHipatternsTodo" },
note = { pattern = "NOTE", group = "MiniHipatternsNote" },

hex_color = hipatterns.gen_highlighter.hex_color(),
},
})
end,
}

0 comments on commit 6c3f2a6

Please sign in to comment.