From 79905005126b9638390366c6206d669a0d3d723f Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Tue, 9 Jul 2024 17:31:20 +0300 Subject: Neovim: added keybind for spooky leap, added a lua snippet for desc --- .config/nvim/lua/custom/plugins/motions.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to '.config/nvim/lua/custom/plugins/motions.lua') diff --git a/.config/nvim/lua/custom/plugins/motions.lua b/.config/nvim/lua/custom/plugins/motions.lua index f36e735..71abb97 100644 --- a/.config/nvim/lua/custom/plugins/motions.lua +++ b/.config/nvim/lua/custom/plugins/motions.lua @@ -20,6 +20,9 @@ return { vim.keymap.set('n', 'S', '(leap-from-window)') vim.keymap.set({ 'x', 'o' }, 's', '(leap-forward)') vim.keymap.set({ 'x', 'o' }, 'S', '(leap-backward)') + vim.keymap.set({ 'n', 'o' }, 'gs', function() + require('leap.remote').action() + end) -- Define equivalence classes for brackets and quotes, in addition to -- the default whitespace group. -- cgit v1.3.1