|
@ -11,8 +11,7 @@ return { |
|
|
harpoon:setup() |
|
|
harpoon:setup() |
|
|
-- REQUIRED |
|
|
-- REQUIRED |
|
|
|
|
|
|
|
|
-- set keymaps |
|
|
|
|
|
local keymap = vim.keymap -- for conciseness |
|
|
|
|
|
|
|
|
local keymap = vim.keymap |
|
|
|
|
|
|
|
|
keymap.set("n", "<leader>a", function () |
|
|
keymap.set("n", "<leader>a", function () |
|
|
harpoon:list():add() |
|
|
harpoon:list():add() |
|
@ -22,20 +21,20 @@ return { |
|
|
harpoon.ui:toggle_quick_menu(harpoon:list()) |
|
|
harpoon.ui:toggle_quick_menu(harpoon:list()) |
|
|
end, { desc = "Toggle quick menu for harpoon" }) |
|
|
end, { desc = "Toggle quick menu for harpoon" }) |
|
|
|
|
|
|
|
|
keymap.set("n", "<C-x>", function() |
|
|
|
|
|
harpoon:list():select(1) |
|
|
|
|
|
end, { desc = "Go to first harpoon file" }) |
|
|
|
|
|
|
|
|
|
|
|
keymap.set("n", "<C-c>", function() |
|
|
|
|
|
harpoon:list():select(2) |
|
|
|
|
|
end, { desc = "Go to second harpoon file" }) |
|
|
|
|
|
|
|
|
|
|
|
keymap.set("n", "<C-v>", function() |
|
|
|
|
|
harpoon:list():select(3) |
|
|
|
|
|
end, { desc = "Go to third harpoon file" }) |
|
|
|
|
|
|
|
|
|
|
|
keymap.set("n", "<C-b>", function() |
|
|
|
|
|
harpoon:list():select(4) |
|
|
|
|
|
end, { desc = "Go to fourth harpoon file" }) |
|
|
|
|
|
|
|
|
-- keymap.set("n", "<C-x>", function() |
|
|
|
|
|
-- harpoon:list():select(1) |
|
|
|
|
|
-- end, { desc = "Go to first harpoon file" }) |
|
|
|
|
|
-- |
|
|
|
|
|
-- keymap.set("n", "<C-c>", function() |
|
|
|
|
|
-- harpoon:list():select(2) |
|
|
|
|
|
-- end, { desc = "Go to second harpoon file" }) |
|
|
|
|
|
-- |
|
|
|
|
|
-- keymap.set("n", "<C-v>", function() |
|
|
|
|
|
-- harpoon:list():select(3) |
|
|
|
|
|
-- end, { desc = "Go to third harpoon file" }) |
|
|
|
|
|
-- |
|
|
|
|
|
-- keymap.set("n", "<C-b>", function() |
|
|
|
|
|
-- harpoon:list():select(4) |
|
|
|
|
|
-- end, { desc = "Go to fourth harpoon file" }) |
|
|
end, |
|
|
end, |
|
|
} |
|
|
} |