mirror of
https://github.com/kristoferssolo/SoloVim.git
synced 2026-02-04 14:52:04 +00:00
Update 24.01.2024
This commit is contained in:
39
lua/plugins/harpoon.lua
Normal file
39
lua/plugins/harpoon.lua
Normal file
@@ -0,0 +1,39 @@
|
||||
return {
|
||||
"ThePrimeagen/harpoon",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
branch = "harpoon2",
|
||||
keys = {
|
||||
{
|
||||
"<leader>ha",
|
||||
function()
|
||||
require("harpoon"):list():append()
|
||||
end,
|
||||
desc = "[H]arpoon [A]dd File",
|
||||
},
|
||||
{
|
||||
"<leader>hm",
|
||||
function()
|
||||
local harpoon = require("harpoon")
|
||||
harpoon.ui:toggle_quick_menu(harpoon:list())
|
||||
end,
|
||||
desc = "[H]arpoon [M]enu",
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
local harpoon = require("harpoon")
|
||||
harpoon:setup()
|
||||
|
||||
vim.keymap.set("n", "<F1>", function()
|
||||
harpoon:list():select(1)
|
||||
end)
|
||||
vim.keymap.set("n", "<F2>", function()
|
||||
harpoon:list():select(2)
|
||||
end)
|
||||
vim.keymap.set("n", "<F3>", function()
|
||||
harpoon:list():select(3)
|
||||
end)
|
||||
vim.keymap.set("n", "<F4>", function()
|
||||
harpoon:list():select(4)
|
||||
end)
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user