-
I have this to map 's' to do leap forward to, and if I press n followed by 's' it supress n character. There is two different behavior because I use 's' to continuously supress characters before enter in insert mode.
But it doesn't work even if I put "remap = true". |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
vim.keymap.set({ "n", "x" }, "s", function () if vim.v.count == 0 then require("leap").leap {} else vim.api.nvim_feedkeys(vim.v.count .. "s", "n", false) end end, { desc = "Leap forward" })