You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever I have at least one item in the harpoon list, hitting Esc in normal mode in any buffer jumps to the buffer that's in the first harpoon entry. If there's no entries in the list then nothing happens (as expected).
I tried to remove the <Esc> keymap for normal mode. It seemed to work at first, but it broke the keymap for harpoon:list():prev() as well.
vim.keymap.del('n', '<Esc>')
vim.keymap.set("n", "<C-[>", function() harpoon:list():prev() end) -- just broken -- However, I was still able to run `lua require('harpoon'):list():prev()` in ex mode, and it worked fine.
What's strange is that without the keymap vim.keymap.set("n", "<C-[>", function() harpoon:list():prev() end), deleting the keymap for <Esc> throws an error saying 'No such mapping'.
I didn't realize that there is no such keymap for <Esc> for normal mode by default.
Whenever I have at least one item in the harpoon list, hitting
Esc
in normal mode in any buffer jumps to the buffer that's in the first harpoon entry. If there's no entries in the list then nothing happens (as expected).Here's my lazy config:
The text was updated successfully, but these errors were encountered: