add shortcuts and leap work foreward and backward with "s"

This commit is contained in:
Omixxx 2023-03-01 17:44:55 +01:00
parent ae9fc10678
commit 81c3cd2ac0
5 changed files with 22 additions and 44 deletions

View file

@ -2,5 +2,9 @@ return {
"ggandor/leap.nvim",
config = function()
require('leap').add_default_mappings()
vim.keymap.set('n', 's', function()
local current_window = vim.fn.win_getid()
require('leap').leap { target_windows = { current_window } }
end)
end
}