From 557e32fe9d68866dd8e7540f197a8e6a1f44f1bd Mon Sep 17 00:00:00 2001 From: Nigel Date: Fri, 11 Oct 2024 21:14:07 +0200 Subject: [PATCH] Better harpoon keybindings --- lua/barink/plugins/harpoon.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/barink/plugins/harpoon.lua b/lua/barink/plugins/harpoon.lua index d083f59..1816903 100644 --- a/lua/barink/plugins/harpoon.lua +++ b/lua/barink/plugins/harpoon.lua @@ -6,8 +6,8 @@ return { local harpoon = require("harpoon") harpoon.setup() - vim.keymap.set("n", "a", function() harpoon:list():append() end) - vim.keymap.set("n", "", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end) + vim.keymap.set("n", "ha", function() harpoon:list():add() end) + vim.keymap.set("n", "hh", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end) vim.keymap.set("n", "1", function() harpoon:list():select(1) end) vim.keymap.set("n", "2", function() harpoon:list():select(2) end) @@ -15,8 +15,8 @@ return { vim.keymap.set("n", "4", function() harpoon:list():select(4) end) - vim.keymap.set("n", "", function() harpoon:list():prev() end) - vim.keymap.set("n", "", function() harpoon:list():next() end) + vim.keymap.set("n", "", function() harpoon:list():prev() end) + vim.keymap.set("n", "", function() harpoon:list():next() end) end }