From efea4df8312c4715257bcbd64505ed6c0791b188 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Fri, 5 Apr 2024 09:11:42 +0200 Subject: [PATCH] harpoon: remove current keybind --- lua/custom/plugins/harpoon.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/custom/plugins/harpoon.lua b/lua/custom/plugins/harpoon.lua index 042217c..4f1c337 100644 --- a/lua/custom/plugins/harpoon.lua +++ b/lua/custom/plugins/harpoon.lua @@ -37,6 +37,10 @@ return { vim.keymap.set('n', 'ha', function() harpoon:list():append() end, { desc = '[H]arpoon [A]ppend' }) + -- Append to harpoon list + vim.keymap.set('n', 'hr', function() + harpoon:list():remove() + end, { desc = '[H]arpoon [R]emove' }) -- Toggle previous & next buffers stored within Harpoon list vim.keymap.set('n', '', function() harpoon:list():prev()