1
0
Fork 0
dotfiles/home/config/nvim/plugins/mini.fnl
Daniel Kempkens bd79289b20
All checks were successful
Build / build-arm64-linux (push) Successful in 9m3s
Build / build-amd64-linux (push) Successful in 26m27s
nvim: Remove more things and use mini.nvim instead
2023-10-08 23:28:27 +02:00

30 lines
1.9 KiB
Fennel

(let [miniclue (require :mini.clue)
hipatterns (require :mini.hipatterns)]
;; https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-clue.md
(miniclue.setup {:triggers [; Leader
{:mode :n :keys :<leader>}
{:mode :x :keys :<leader>}
; Built-in
{:mode :i :keys :<C-x>}]
:clues [(miniclue.gen_clues.builtin_completion)]})
;; https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-comment.md
((. (require :mini.comment) :setup) {})
;; https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-hipatterns.md
(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)}})
;; https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-jump2d.md
((. (require :mini.jump2d) :setup) {:hooks {:before_start (fn []
(vim.cmd :nohlsearch))}})
;; https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-move.md
((. (require :mini.move) :setup) {})
;; https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-surround.md
((. (require :mini.surround) :setup) {})
;; https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-pairs.md
((. (require :mini.pairs) :setup) {}))