about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-09-02 11:41:33 +0900
committersefidel <contact@sefidel.net>2023-09-02 11:41:50 +0900
commit8ec40af684c5ad9d78b4b2cb5bbdfa3155237ab3 (patch)
treeedddf23cd4a07db124ac7b98dd99143d8caf3a37
parent38a7badbfa67f29556836c94ce66d872af246385 (diff)
downloadnvimrc-8ec40af684c5ad9d78b4b2cb5bbdfa3155237ab3.tar.gz
nvimrc-8ec40af684c5ad9d78b4b2cb5bbdfa3155237ab3.zip
feat(packs/leap)!: use default keybindings
-rw-r--r--fnl/nvrc/keymaps.fnl3
-rw-r--r--fnl/nvrc/pack.fnl2
-rw-r--r--fnl/nvrc/packs/leap.fnl3
3 files changed, 4 insertions, 4 deletions
diff --git a/fnl/nvrc/keymaps.fnl b/fnl/nvrc/keymaps.fnl
index 0e263cb..349464b 100644
--- a/fnl/nvrc/keymaps.fnl
+++ b/fnl/nvrc/keymaps.fnl
@@ -29,9 +29,6 @@
 (map! [n :silent] :<leader>fg ((. (require :fzf-lua) :git_commits)))
 (map! [n :silent] :<leader>fh ((. (require :fzf-lua) :git_status)))
 
-(map! [n] :t "<plug>(leap-omni)")
-(map! [n] :T "<plug>(leap-cross-window)")
-
 (map! [n :silent] :<leader>t ":Dirvish<cr>")
 
 (map! [n :silent] :<leader>ga ":Git add %<tab><cr>")
diff --git a/fnl/nvrc/pack.fnl b/fnl/nvrc/pack.fnl
index 68961e9..7195526 100644
--- a/fnl/nvrc/pack.fnl
+++ b/fnl/nvrc/pack.fnl
@@ -33,7 +33,7 @@
                                      (pack :lukas-reineke/cmp-under-comparator {:module :cmp-under-comparator})]})
 (pack! :numToStr/Comment.nvim {:module :Comment :init :Comment})
 (pack! :ibhagwan/fzf-lua {:req :fzf :module :fzf-lua})
-(pack! :ggandor/leap.nvim)
+(pack! :ggandor/leap.nvim {:req :leap})
 (pack! :windwp/nvim-autopairs {:init :nvim-autopairs})
 
 (unpack!)
diff --git a/fnl/nvrc/packs/leap.fnl b/fnl/nvrc/packs/leap.fnl
new file mode 100644
index 0000000..28220a8
--- /dev/null
+++ b/fnl/nvrc/packs/leap.fnl
@@ -0,0 +1,3 @@
+(local {: add_default_mappings} (require :leap))
+
+(add_default_mappings)