diff options
| author | aktersnurra <gustaf@gustafrydholm.xyz> | 2026-04-18 00:52:28 +0200 |
|---|---|---|
| committer | aktersnurra <gustaf@gustafrydholm.xyz> | 2026-04-20 22:58:39 +0200 |
| commit | 11d50dc8934a5b9e9be73d0445789e005843dfc2 (patch) | |
| tree | c87c84806ab5fcd48f191c765650b91e1e52ce6f /fnl/plugins/leap.fnl | |
| parent | 0f3690bd084ba3b47b4c356089b03a6df763572c (diff) | |
Diffstat (limited to 'fnl/plugins/leap.fnl')
| -rw-r--r-- | fnl/plugins/leap.fnl | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/fnl/plugins/leap.fnl b/fnl/plugins/leap.fnl index d6ec18e..8f49390 100644 --- a/fnl/plugins/leap.fnl +++ b/fnl/plugins/leap.fnl @@ -1,4 +1,5 @@ ;; Leap through text. +(import-macros {: keymaps} :macros) (local dependencies [{1 :tpope/vim-repeat :event :VeryLazy} {1 :aktersnurra/leap-spooky.nvim @@ -27,11 +28,11 @@ (λ config [] (let [leap (require :leap)] (tset leap.opts.vim_opts :go.ignorecase false) - (vim.keymap.set [:n :x :o] :s "<Plug>(leap-forward)") - (vim.keymap.set [:n :x :o] :S "<Plug>(leap-backward)") - (vim.keymap.set [:x :o] :x "<Plug>(leap-forward-till)") - (vim.keymap.set [:x :o] :X "<Plug>(leap-backward-till)") - (vim.keymap.set [:n] :gs "<Plug>(leap-from-window)"))) + (keymaps [[:n :x :o] :s "<Plug>(leap-forward)" {}] + [[:n :x :o] :S "<Plug>(leap-backward)" {}] + [[:x :o] :x "<Plug>(leap-forward-till)" {}] + [[:x :o] :X "<Plug>(leap-backward-till)" {}] + [[:n] :gs "<Plug>(leap-from-window)" {}]))) {:url "https://codeberg.org/andyg/leap.nvim" : dependencies |