2024-02-06 00:47:31 +01:00
|
|
|
local harpoon = require("harpoon")
|
2023-08-03 12:56:24 +02:00
|
|
|
|
2024-02-06 00:47:31 +01:00
|
|
|
-- REQUIRED
|
|
|
|
harpoon:setup()
|
|
|
|
-- REQUIRED
|
2023-07-29 15:00:35 +02:00
|
|
|
|
2024-07-12 22:10:34 +02:00
|
|
|
vim.keymap.set("n", "<leader>ha", function() harpoon:list():append() end)
|
2024-02-06 00:47:31 +01:00
|
|
|
vim.keymap.set("n", "<C-e>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
|
2023-07-31 23:57:35 +02:00
|
|
|
|
2024-02-06 00:47:31 +01:00
|
|
|
vim.keymap.set("n", "<C-h>", function() harpoon:list():select(1) end)
|
|
|
|
vim.keymap.set("n", "<C-t>", function() harpoon:list():select(2) end)
|
|
|
|
vim.keymap.set("n", "<C-n>", function() harpoon:list():select(3) end)
|
|
|
|
vim.keymap.set("n", "<C-s>", function() harpoon:list():select(4) end)
|
2023-07-29 15:00:35 +02:00
|
|
|
|
2024-02-06 00:47:31 +01:00
|
|
|
-- Toggle previous & next buffers stored within Harpoon list
|
|
|
|
vim.keymap.set("n", "<C-S-P>", function() harpoon:list():prev() end)
|
|
|
|
vim.keymap.set("n", "<C-S-N>", function() harpoon:list():next() end)
|