From 2f483e68303c33d6aa3723d887b09998c3f20ee4 Mon Sep 17 00:00:00 2001 From: nil Date: Tue, 14 Jan 2025 20:14:37 +0100 Subject: init --- lua/after/plugin/harpoon.lua | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 lua/after/plugin/harpoon.lua (limited to 'lua/after/plugin/harpoon.lua') diff --git a/lua/after/plugin/harpoon.lua b/lua/after/plugin/harpoon.lua new file mode 100755 index 0000000..8cdd15c --- /dev/null +++ b/lua/after/plugin/harpoon.lua @@ -0,0 +1,25 @@ +local harpoon = require("harpoon") + +-- REQUIRED +harpoon:setup() +-- REQUIRED + +vim.keymap.set("n", "a", function() harpoon:list():add() end) +vim.keymap.set("n", "", function() harpoon:list():add() end) + +vim.keymap.set("n", "h", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end) +vim.keymap.set("n", "", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end) + +vim.keymap.set("n", "", function() harpoon:list():select(1) end) +vim.keymap.set("n", "", function() harpoon:list():select(2) end) +vim.keymap.set("n", "", function() harpoon:list():select(3) end) +vim.keymap.set("n", "", function() harpoon:list():select(4) end) +vim.keymap.set("n", "", function() harpoon:list():select(5) end) +vim.keymap.set("n", "", function() harpoon:list():select(6) end) +vim.keymap.set("n", "", function() harpoon:list():select(7) end) +vim.keymap.set("n", "", function() harpoon:list():select(8) end) +vim.keymap.set("n", "", function() harpoon:list():select(9) end) + +-- Toggle previous & next buffers stored within Harpoon list +vim.keymap.set("n", "", function() harpoon:list():next() end) +vim.keymap.set("n", "", function() harpoon:list():prev() end) -- cgit v1.2.3