Added harpoon
This commit is contained in:
31
lua/taken/plugins/harpoon.lua
Normal file
31
lua/taken/plugins/harpoon.lua
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
--- @type LazyPluginSpec
|
||||||
|
return {
|
||||||
|
"ThePrimeagen/harpoon",
|
||||||
|
branch = "harpoon2",
|
||||||
|
dependencies = { "nvim-lua/plenary.nvim" },
|
||||||
|
config = function()
|
||||||
|
local harpoon = require("harpoon")
|
||||||
|
|
||||||
|
harpoon:setup()
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<leader>a", function()
|
||||||
|
harpoon:list():append()
|
||||||
|
end)
|
||||||
|
vim.keymap.set("n", "<leader>th", 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)
|
||||||
|
end,
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user