From c723a3cac999396ec66ae61129b54a013b76e287 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Wed, 26 Apr 2023 19:19:20 -0400 Subject: [PATCH] nvim: add t/T bind to leap --- src/.config/nvim/lua/init.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/.config/nvim/lua/init.lua b/src/.config/nvim/lua/init.lua index 2ec932c..9f5a533 100644 --- a/src/.config/nvim/lua/init.lua +++ b/src/.config/nvim/lua/init.lua @@ -90,6 +90,18 @@ require('dressing').setup({ -- fancy motions (leap.nvim) vim.keymap.set({'n', 'x', 'o'}, 'f', '(leap-forward-to)') vim.keymap.set({'n', 'x', 'o'}, 'F', '(leap-backward-to)') +vim.keymap.set( + {'n', 'x', 'o'}, 't', + function () + require("leap").leap { offset = 2 } + end +) +vim.keymap.set( + {'n', 'x', 'o'}, 'T', + function () + require("leap").leap { backward = true, offset = 2 } + end +) require('leap').opts.safe_labels = { "a", "s", "d", "f", "g", "h", "j", "k", "l" }