summaryrefslogtreecommitdiff
path: root/fnl/config/leap.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-10-10 23:23:56 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-10-10 23:23:56 +0200
commit217722523deae12d9dc760846c6649860fac940a (patch)
tree85a352406231fee2fcb109190053f53766d198dd /fnl/config/leap.fnl
parent66a8bf1ac557b579fac4099affcdca2ee0764e78 (diff)
Replace hop with leap and flit
Diffstat (limited to 'fnl/config/leap.fnl')
-rw-r--r--fnl/config/leap.fnl19
1 files changed, 19 insertions, 0 deletions
diff --git a/fnl/config/leap.fnl b/fnl/config/leap.fnl
new file mode 100644
index 0000000..cb6a267
--- /dev/null
+++ b/fnl/config/leap.fnl
@@ -0,0 +1,19 @@
+;; Leap through text.
+(module config.leap {autoload {: util nvim aniseed.nvim}})
+
+(def- opts {:max_aot_targets nil
+ :highlight_unlabeled false
+ :max_highlighted_traversal_targets 10
+ :case_sensitive false
+ :equivalence_classes [" \t\r\n"]
+ :substitute_chars []
+ :special_keys {:repeat_search :<enter>
+ :next_aot_match :<enter>
+ :next_match [";" :<enter>]
+ :prev_match ["," :<tab>]
+ :next_group :<space>
+ :prev_group :<tab>}})
+
+(let [leap (util.load-plugin :leap)]
+ (leap.setup opts)
+ (leap.set_default_keymaps))