summaryrefslogtreecommitdiff
path: root/fnl/config/leap.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-01-08 02:49:49 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-01-08 02:49:49 +0100
commit86fc163e549d78136855ac2b45e91ffb2f43affc (patch)
tree20fab78a2ff2635af5ac95f2b2a11d9d07ace0e1 /fnl/config/leap.fnl
parent0d7f782cb4e68cff000beb00e8ab64308a66f3f0 (diff)
Refactor config loading
Diffstat (limited to 'fnl/config/leap.fnl')
-rw-r--r--fnl/config/leap.fnl13
1 files changed, 8 insertions, 5 deletions
diff --git a/fnl/config/leap.fnl b/fnl/config/leap.fnl
index 868f9eb..2a03da1 100644
--- a/fnl/config/leap.fnl
+++ b/fnl/config/leap.fnl
@@ -1,8 +1,11 @@
;; Leap through text.
-(module config.leap {autoload {util config.util nvim aniseed.nvim}})
-(def- opts {})
+(fn setup []
+ (let [leap (require :leap)]
+ (leap.setup {})
+ (leap.set_default_keymaps)))
-(let [leap (util.prequire :leap)]
- (leap.setup opts)
- (leap.set_default_keymaps))
+{1 :ggandor/leap.nvim
+ :event :BufReadPost
+ :config (fn []
+ (setup))}