about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-05-18 16:42:15 +0900
committersefidel <contact@sefidel.net>2024-05-18 16:42:15 +0900
commita4bfd4a5635983d4bcc1c4cc65ceec990b125102 (patch)
tree5c06cce6139ef12c8627c55f30333986aa291248
parent23639cace897c0609fac2b7c12fa9a1739b2aba0 (diff)
downloadnvimrc-a4bfd4a5635983d4bcc1c4cc65ceec990b125102.tar.gz
nvimrc-a4bfd4a5635983d4bcc1c4cc65ceec990b125102.zip
fix(keymaps): fix leap conflicting with helix-like movement
-rw-r--r--fnl/nvrc/pack.fnl2
-rw-r--r--fnl/nvrc/packs/leap.fnl5
2 files changed, 4 insertions, 3 deletions
diff --git a/fnl/nvrc/pack.fnl b/fnl/nvrc/pack.fnl
index ae49024..9e65d83 100644
--- a/fnl/nvrc/pack.fnl
+++ b/fnl/nvrc/pack.fnl
@@ -47,7 +47,7 @@
                                          (pack :hrsh7th/cmp-nvim-lsp-signature-help)]})
 (pack! :numToStr/Comment.nvim {:init :Comment :lazy true})
 (pack! :ibhagwan/fzf-lua {:req :fzf :lazy true})
-(pack! :ggandor/leap.nvim {:req :leap :keys [:s :S :gs]})
+(pack! :ggandor/leap.nvim {:req :leap :keys [:s :S]})
 (pack! :windwp/nvim-autopairs {:req :autopairs :event :InsertEnter})
 (pack! :kylechui/nvim-surround {:init :nvim-surround :event :InsertEnter})
 
diff --git a/fnl/nvrc/packs/leap.fnl b/fnl/nvrc/packs/leap.fnl
index 28220a8..a395447 100644
--- a/fnl/nvrc/packs/leap.fnl
+++ b/fnl/nvrc/packs/leap.fnl
@@ -1,3 +1,4 @@
-(local {: add_default_mappings} (require :leap))
+(import-macros {: map!} :nvrc.macro.keymap)
 
-(add_default_mappings)
+(map! [nxo] :s "<Plug>(leap-forward)")
+(map! [nxo] :S "<Plug>(leap-backward)")