Update Harpoon configuration

This commit is contained in:
Oliver Davies 2025-03-22 22:57:59 +00:00
parent 7affff28a3
commit 6f2c2ad092

View file

@ -2,14 +2,30 @@ local harpoon = require "harpoon"
harpoon:setup() harpoon:setup()
vim.keymap.set("n", "<leader>hm", function() vim.keymap.set("n", "<leader>a", function()
harpoon:list():add() harpoon:list():add()
end) end)
vim.keymap.set("n", "<leader>hl", function() vim.keymap.set("n", "<C-e>", function()
harpoon.ui:toggle_quick_menu(harpoon:list()) harpoon.ui:toggle_quick_menu(harpoon:list())
end) end)
vim.keymap.set("n", "<C-h>", function()
harpoon:list():select(1)
end)
vim.keymap.set("n", "<C-j>", function()
harpoon:list():select(2)
end)
vim.keymap.set("n", "<C-k>", function()
harpoon:list():select(3)
end)
vim.keymap.set("n", "<C-l>", function()
harpoon:list():select(4)
end)
-- Set <space>1..<space>5 be my shortcuts to moving to the files -- Set <space>1..<space>5 be my shortcuts to moving to the files
for _, idx in ipairs { 1, 2, 3, 4, 5 } do for _, idx in ipairs { 1, 2, 3, 4, 5 } do
vim.keymap.set("n", string.format("<space>%d", idx), function() vim.keymap.set("n", string.format("<space>%d", idx), function()