Go to any word in the current buffer.
vim.keymap.set({ "n", "x" }, "SS", function()
require("leap").leap({
targets = get_backward_words(1), -- 1 means search word from one line up
})
end)
vim.keymap.set({ "n", "x" }, "Ss", function()
require("leap").leap({
targets = get_forward_words(1), -- 1 means search word from one line down
})
end)