summaryrefslogtreecommitdiff
path: root/fnl/config/better-escape.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-07-19 23:38:55 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-07-19 23:38:55 +0200
commite12bf77a9fd8ebe81347532528c084d3a07c366a (patch)
tree9ef0b0c30ef01c7168edd6cb18323a8d3c273430 /fnl/config/better-escape.fnl
parent3d53862b8c3f1ab19f4ac870079cc62fb886313d (diff)
Add util fun for loading most plugin opts
Diffstat (limited to 'fnl/config/better-escape.fnl')
-rw-r--r--fnl/config/better-escape.fnl13
1 files changed, 7 insertions, 6 deletions
diff --git a/fnl/config/better-escape.fnl b/fnl/config/better-escape.fnl
index ffe3a6e..769fb32 100644
--- a/fnl/config/better-escape.fnl
+++ b/fnl/config/better-escape.fnl
@@ -1,8 +1,9 @@
-;; Better escape without nasty delay
+;; Better escape without nasty delay.
(module config.better-escape {autoload {: util}})
-(let [better-escape (util.load-plugin :better_escape)]
- (better-escape.setup {:mapping [:jk :jj]
- :timeout vim.o.timeoutlen
- :clear_empty_lines false
- :keys :<Esc>}))
+(def- opts {:mapping [:kk :jj]
+ :timeout vim.o.timeoutlen
+ :clear_empty_lines false
+ :keys :<Esc>})
+
+(util.use-config :better_escape opts)