From b490bc9c5245af66cb2513b65fa6d927ecd44ed0 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Sat, 30 Mar 2024 17:00:07 +0100 Subject: [PATCH] additional harpoon keymaps --- lua/custom/plugins/harpoon.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lua/custom/plugins/harpoon.lua b/lua/custom/plugins/harpoon.lua index a2cb64b..9e45d2d 100644 --- a/lua/custom/plugins/harpoon.lua +++ b/lua/custom/plugins/harpoon.lua @@ -33,5 +33,16 @@ return { vim.keymap.set('n', 'ho', function() toggle_telescope(harpoon:list()) end, { desc = '[H]arpoon [Open]' }) + -- Append to harpoon list + vim.keymap.set('n', 'ha', function() + harpoon:list():append() + end, { desc = '[H]arpoon [A]ppend' }) + -- Toggle previous & next buffers stored within Harpoon list + vim.keymap.set('n', '', function() + harpoon:list():prev() + end) + vim.keymap.set('n', '', function() + harpoon:list():next() + end) end, }