diff options
author | nil <niljo@airmail.cc> | 2025-01-14 20:14:37 +0100 |
---|---|---|
committer | nil <niljo@airmail.cc> | 2025-01-14 20:14:37 +0100 |
commit | 2f483e68303c33d6aa3723d887b09998c3f20ee4 (patch) | |
tree | 29ec62ba1cf3f6b10cffa2efd8f6da41f5db5603 /lua/after/plugin/harpoon.lua |
Diffstat (limited to 'lua/after/plugin/harpoon.lua')
-rwxr-xr-x | lua/after/plugin/harpoon.lua | 25 |
1 files changed, 25 insertions, 0 deletions
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", "<leader>a", function() harpoon:list():add() end) +vim.keymap.set("n", "<A-a>", function() harpoon:list():add() end) + +vim.keymap.set("n", "<leader>h", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end) +vim.keymap.set("n", "<A-h>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end) + +vim.keymap.set("n", "<A-1>", function() harpoon:list():select(1) end) +vim.keymap.set("n", "<A-2>", function() harpoon:list():select(2) end) +vim.keymap.set("n", "<A-3>", function() harpoon:list():select(3) end) +vim.keymap.set("n", "<A-4>", function() harpoon:list():select(4) end) +vim.keymap.set("n", "<A-5>", function() harpoon:list():select(5) end) +vim.keymap.set("n", "<A-6>", function() harpoon:list():select(6) end) +vim.keymap.set("n", "<A-7>", function() harpoon:list():select(7) end) +vim.keymap.set("n", "<A-8>", function() harpoon:list():select(8) end) +vim.keymap.set("n", "<A-9>", function() harpoon:list():select(9) end) + +-- Toggle previous & next buffers stored within Harpoon list +vim.keymap.set("n", "<A-n>", function() harpoon:list():next() end) +vim.keymap.set("n", "<A-p>", function() harpoon:list():prev() end) |