diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-04 22:33:32 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-04 22:33:32 +0200 |
commit | 54bc640e1c4df9b9481e7cbec7b684a197b07db1 (patch) | |
tree | 74d602eb8168bd780e1167126a27a29b769c514a | |
parent | 6890ddc4d7ed18859197db774ba2ea44b7031596 (diff) |
feat(better-escape): add fnl config
-rw-r--r-- | fnl/config/better-escape.fnl | 12 | ||||
-rw-r--r-- | fnl/plugins.fnl | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/fnl/config/better-escape.fnl b/fnl/config/better-escape.fnl new file mode 100644 index 0000000..83b4d07 --- /dev/null +++ b/fnl/config/better-escape.fnl @@ -0,0 +1,12 @@ +;; Better escape without nasty delay +(module config.better-escape + {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 "<Esc>"}}))) diff --git a/fnl/plugins.fnl b/fnl/plugins.fnl index 9203532..1772fbb 100644 --- a/fnl/plugins.fnl +++ b/fnl/plugins.fnl @@ -59,4 +59,5 @@ :kevinhwang91/nvim-bqf { :event "BufRead" } :norcalli/nvim-colorizer.lua {} + :max397574/better-escape.nvim {} :nvim-orgmode/orgmode {}}) |