From c53bda87d0fa6a5cd95595c374215c586bdd7d40 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 15 Aug 2024 13:39:00 +0200 Subject: checkpoint --- after/plugin/harpoon.lua | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'after/plugin/harpoon.lua') diff --git a/after/plugin/harpoon.lua b/after/plugin/harpoon.lua index bd5aeef..f7d522a 100644 --- a/after/plugin/harpoon.lua +++ b/after/plugin/harpoon.lua @@ -1,33 +1,33 @@ local harpoon = require("harpoon") +local map = vim.keymap.set -- 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() +map("n", "", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end, { desc = "Check the list of files in harpoon" }) -vim.keymap.set("n", "", function() +map("n", " ha", function() + harpoon:list():add() +end, { desc = "Append file to harpoon starred list" }) +map("n", " h1", function() harpoon:list():select(1) end, { desc = "Harpoon to 1st file in list" }) -vim.keymap.set("n", "", function() +map("n", " h2", function() harpoon:list():select(2) end, { desc = "Harpoon to 2nd file in list" }) -vim.keymap.set("n", "", function() +map("n", " h3", function() harpoon:list():select(3) end, { desc = "Harpoon to 3rd file in list" }) -vim.keymap.set("n", "", function() +map("n", " h4", 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() +map("n", " hp", function() harpoon:list():prev() end, { desc = "Harpoon to previous file in list" }) -vim.keymap.set("n", "", function() +map("n", " hn", function() harpoon:list():next() end, { desc = "Harpoon to next file in list" }) -- cgit v1.2.3