summaryrefslogtreecommitdiff
path: root/dot_config/nvim/fnl/plugins/flash.fnl
diff options
context:
space:
mode:
authorChloƩ Vulquin <code@toast.bunkerlabs.net>2024-07-24 19:19:26 +0200
committerChloƩ Vulquin <code@toast.bunkerlabs.net>2024-07-24 19:19:26 +0200
commit01586921b3d5f2ac1ccf8196d3ad9b4b3ddd31f3 (patch)
treed740ac5e8943e48ee4132efc4633051d6cdf1d48 /dot_config/nvim/fnl/plugins/flash.fnl
parentnvim: 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 'dot_config/nvim/fnl/plugins/flash.fnl')
-rw-r--r--dot_config/nvim/fnl/plugins/flash.fnl19
1 files changed, 19 insertions, 0 deletions
diff --git a/dot_config/nvim/fnl/plugins/flash.fnl b/dot_config/nvim/fnl/plugins/flash.fnl
new file mode 100644
index 0000000..ece5de4
--- /dev/null
+++ b/dot_config/nvim/fnl/plugins/flash.fnl
@@ -0,0 +1,19 @@
+(import-macros {: tbl : recc} :toast.macros)
+[(tbl :folke/flash.nvim &
+ :opts {:modes {:search {:enabled false}}}
+ :event :VeryLazy
+ :keys [(tbl :s #(recc :flash :jump) &
+ :mode [:n :x :o]
+ :desc :Flash)
+ (tbl :S #(recc :flash :treesitter) &
+ :mode [:n :x :o]
+ :desc "Flash Treesitter")
+ (tbl :r #(recc :flash :remote) &
+ :mode :o
+ :desc "Remote Flash")
+ (tbl :R #(recc :flash :treesitter_search) &
+ :mode [:o :x]
+ :desc "Flash Treesitter Search")
+ (tbl :<c-s> #(recc :flash :toggle) &
+ :mode :c
+ :desc "Toggle Flash Search")])]