From 71d538630b226da37e4ef21c5a84d6fad5f55421 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Thu, 7 Apr 2022 22:32:53 +0200 Subject: fix(load plugin): correct loading err --- fnl/config/better-escape.fnl | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'fnl/config/better-escape.fnl') diff --git a/fnl/config/better-escape.fnl b/fnl/config/better-escape.fnl index 83b4d07..5c993b7 100644 --- a/fnl/config/better-escape.fnl +++ b/fnl/config/better-escape.fnl @@ -3,10 +3,9 @@ {autoload {util util}}) -(let [(ok? better-escape) util.load-plugin :better-escape] - (when ok? - (better-escape.setup { - :mapping ["jk" "jj"] - :timeout vim.o.timeoutlen - :clear_empty_lines false - :keys ""}}))) +(let [better-escape (util.load-plugin :better-escape)] + (better-escape.setup { + :mapping ["jk" "jj"] + :timeout vim.o.timeoutlen + :clear_empty_lines false + :keys ""}})) -- cgit v1.2.3-70-g09d2