diff options
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) |