From d7a6755c559c9a5b296bdf65ce67112adef93edb Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 9 Oct 2024 16:59:15 +0200 Subject: checkpoint --- after/plugin/harpoon.lua | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) (limited to 'after/plugin/harpoon.lua') diff --git a/after/plugin/harpoon.lua b/after/plugin/harpoon.lua index 466fe8c..999b957 100644 --- a/after/plugin/harpoon.lua +++ b/after/plugin/harpoon.lua @@ -4,14 +4,31 @@ local map = vim.keymap.set -- REQUIRED harpoon:setup() -map("n", "", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end) +map("n", "", function() + harpoon.ui:toggle_quick_menu(harpoon:list()) +end, { desc = "Harpoon pick menu" }) -map("n", " ha", function() harpoon:list():add() end) -map("n", " h1", function() harpoon:list():select(1) end) -map("n", " h2", function() harpoon:list():select(2) end) -map("n", " h3", function() harpoon:list():select(3) end) -map("n", " h4", function() harpoon:list():select(4) end) +map("n", " ha", function() + harpoon:list():add() + print("Added to harpoon.") +end, { desc = "Harpoon add" }) +map("n", " h1", function() + harpoon:list():select(1) +end, { desc = "Harpoon 1" }) +map("n", " h2", function() + harpoon:list():select(2) +end, { desc = "Harpoon 2" }) +map("n", " h3", function() + harpoon:list():select(3) +end, { desc = "Harpoon 3" }) +map("n", " h4", function() + harpoon:list():select(4) +end, { desc = "Harpoon 4" }) -- Toggle previous & next buffers stored within Harpoon list -map("n", " hp", function() harpoon:list():prev() end) -map("n", " hn", function() harpoon:list():next() end) +map("n", " hp", function() + harpoon:list():prev() +end, { desc = "Harpoon previous" }) +map("n", " hn", function() + harpoon:list():next() +end, { desc = "Harpoon next" }) -- cgit v1.2.3