From a4bfd4a5635983d4bcc1c4cc65ceec990b125102 Mon Sep 17 00:00:00 2001 From: sefidel Date: Sat, 18 May 2024 16:42:15 +0900 Subject: fix(keymaps): fix leap conflicting with helix-like movement --- fnl/nvrc/pack.fnl | 2 +- fnl/nvrc/packs/leap.fnl | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'fnl/nvrc') 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 "(leap-forward)") +(map! [nxo] :S "(leap-backward)") -- cgit 1.4.1