diff options
| author | 2024-07-24 19:19:26 +0200 | |
|---|---|---|
| committer | 2024-07-24 19:19:26 +0200 | |
| commit | 01586921b3d5f2ac1ccf8196d3ad9b4b3ddd31f3 (patch) | |
| tree | d740ac5e8943e48ee4132efc4633051d6cdf1d48 /dot_config/nvim/fnl/plugins/mini | |
| parent | nvim: ignore lazy-lock.json (diff) | |
nvim: rewrite config in fennel
One file isn't done, and there's also the question of ftplugin and co.
One step at a time though, eh?
Diffstat (limited to '')
| -rw-r--r-- | dot_config/nvim/fnl/plugins/mini/init.fnl | 20 | ||||
| -rw-r--r-- | dot_config/nvim/fnl/plugins/mini/starter.fnl | 15 |
2 files changed, 35 insertions, 0 deletions
diff --git a/dot_config/nvim/fnl/plugins/mini/init.fnl b/dot_config/nvim/fnl/plugins/mini/init.fnl new file mode 100644 index 0000000..f175ed7 --- /dev/null +++ b/dot_config/nvim/fnl/plugins/mini/init.fnl @@ -0,0 +1,20 @@ +(import-macros {: tbl : recc} :toast.macros) +[(tbl :echasnovski/mini.nvim & + :version false + :config (fn [_ opts] + (each [k v (pairs opts)] + (recc (.. :mini. k) :setup v))) + :opts (fn [] {:ai {} + :align {} + :basics {} + :bracketed {:indent {:options {:change_type :diff}}} + :comment {} + :completion {} + :cursorword {} + :indentscope {} + :move {} + :splitjoin {} + ; :starter (require :plugins.mini.starter) + :statusline {} + :tabline {} + :trailspace {}}))] diff --git a/dot_config/nvim/fnl/plugins/mini/starter.fnl b/dot_config/nvim/fnl/plugins/mini/starter.fnl new file mode 100644 index 0000000..99d71f9 --- /dev/null +++ b/dot_config/nvim/fnl/plugins/mini/starter.fnl @@ -0,0 +1,15 @@ +(let [starter (require :mini.starter) + telescope [{:action "Telescope commands" + :name :Commands} + {:action "Telescope find_files" + :name :Files} + {:action "Telescope help_tags" + :name "Help tags"} + {:action "Telescope live_grep" + :name "Live grep"} + {:action "Telescope oldfiles" + :name "Old files"}]] + (each [_ v (ipairs telescope)] + (set v.section :Telescope)) + {:items [telescope + (starter.sections.builtin_actions)]}) |
