Skip to content

Commit

Permalink
Add .config/nvim/lua/plugins/harpoon.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyuga-Tsukui committed Oct 31, 2024
1 parent cffbfa9 commit 46266e9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions dot_config/nvim/lua/plugins/harpoon.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
return {
"ThePrimeagen/harpoon",
branch = "harpoon2",
dependencies = { "nvim-lua/plenary.nvim" },
config = function()
local harpoon = require("harpoon")
harpoon:setup()

-- Add a new harpoon mark
vim.keymap.set("n", "<leader>m", function()
harpoon:list():add()
end)
vim.keymap.set("n", "<C-e>", function()
harpoon.ui:toggle_quick_menu(harpoon:list())
end)
end,
}

0 comments on commit 46266e9

Please sign in to comment.