From e12bf77a9fd8ebe81347532528c084d3a07c366a Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 19 Jul 2022 23:38:55 +0200 Subject: Add util fun for loading most plugin opts --- fnl/config/better-escape.fnl | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'fnl/config/better-escape.fnl') 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 :})) +(def- opts {:mapping [:kk :jj] + :timeout vim.o.timeoutlen + :clear_empty_lines false + :keys :}) + +(util.use-config :better_escape opts) -- cgit v1.2.3-70-g09d2