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" }