summaryrefslogtreecommitdiff
path: root/fnl/config/leap.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-10-16 01:40:16 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-10-16 01:40:16 +0200
commit6cb31718df762c6ebf764986074f08b19d6f82f8 (patch)
tree4bc60c9d94de082914ea9ab2d488114caff4edd4 /fnl/config/leap.fnl
parent68c0f6bab06ea587b9b258d1ad3b0c9870bc163f (diff)
Refactor loading of plugins with packer
Diffstat (limited to 'fnl/config/leap.fnl')
-rw-r--r--fnl/config/leap.fnl17
1 files changed, 3 insertions, 14 deletions
diff --git a/fnl/config/leap.fnl b/fnl/config/leap.fnl
index cb6a267..541b0e0 100644
--- a/fnl/config/leap.fnl
+++ b/fnl/config/leap.fnl
@@ -1,19 +1,8 @@
;; Leap through text.
-(module config.leap {autoload {: util nvim aniseed.nvim}})
+(module config.leap {autoload {:util :config.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>}})
+(def- opts {})
-(let [leap (util.load-plugin :leap)]
+(let [leap (util.prequire :leap)]
(leap.setup opts)
(leap.set_default_keymaps))