summaryrefslogtreecommitdiff
path: root/fnl/config/better-escape.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/config/better-escape.fnl')
-rw-r--r--fnl/config/better-escape.fnl8
1 files changed, 8 insertions, 0 deletions
diff --git a/fnl/config/better-escape.fnl b/fnl/config/better-escape.fnl
new file mode 100644
index 0000000..93ec0a9
--- /dev/null
+++ b/fnl/config/better-escape.fnl
@@ -0,0 +1,8 @@
+;; Better escape without nasty delay
+(module config.better-escape {autoload {util 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>}))