From 535de78034b347a3407aa6ff5287a1b4897172ea Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Fri, 22 Mar 2024 01:25:05 +0100 Subject: First commit! --- after/plugin/harpoon.lua | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 after/plugin/harpoon.lua (limited to 'after/plugin/harpoon.lua') diff --git a/after/plugin/harpoon.lua b/after/plugin/harpoon.lua new file mode 100644 index 0000000..bd5aeef --- /dev/null +++ b/after/plugin/harpoon.lua @@ -0,0 +1,33 @@ +local harpoon = require("harpoon") + +-- REQUIRED +harpoon:setup() +-- REQUIRED + +vim.keymap.set("n", "a", function() + harpoon:list():append() +end, { desc = "Append file to harpoon starred list" }) +vim.keymap.set("n", "", function() + harpoon.ui:toggle_quick_menu(harpoon:list()) +end, { desc = "Check the list of files in harpoon" }) + +vim.keymap.set("n", "", function() + harpoon:list():select(1) +end, { desc = "Harpoon to 1st file in list" }) +vim.keymap.set("n", "", function() + harpoon:list():select(2) +end, { desc = "Harpoon to 2nd file in list" }) +vim.keymap.set("n", "", function() + harpoon:list():select(3) +end, { desc = "Harpoon to 3rd file in list" }) +vim.keymap.set("n", "", function() + harpoon:list():select(4) +end, { desc = "Harpoon to 4th file in list" }) + +-- Toggle previous & next buffers stored within Harpoon list +vim.keymap.set("n", "", function() + harpoon:list():prev() +end, { desc = "Harpoon to previous file in list" }) +vim.keymap.set("n", "", function() + harpoon:list():next() +end, { desc = "Harpoon to next file in list" }) -- cgit v1.2.3