trixy/lua/plugins/harpoon.lua

35 lines
1.1 KiB
Lua

-- :fennel:1721425793
local harpoon = require("harpoon")
harpoon.setup()
local function _1_()
return (harpoon.list):append()
end
vim.keymap.set({"n"}, "<leader>ha", _1_, {noremap = true, silent = true})
local function _2_()
return harpoon.ui.toggle_quick_menu(harpoon.list())
end
vim.keymap.set({"n"}, "<C-e>", _2_, {noremap = true, silent = true})
local function _3_()
return (harpoon.list):select(1)
end
vim.keymap.set({"n"}, "<C-h>", _3_, {noremap = true, silent = true})
local function _4_()
return (harpoon.list):select(2)
end
vim.keymap.set({"n"}, "<C-t>", _4_, {noremap = true, silent = true})
local function _5_()
return (harpoon.list):select(3)
end
vim.keymap.set({"n"}, "<C-n>", _5_, {noremap = true, silent = true})
local function _6_()
return (harpoon.list):select(4)
end
vim.keymap.set({"n"}, "<C-s>", _6_, {noremap = true, silent = true})
local function _7_()
return (harpoon.list):prev()
end
vim.keymap.set({"n"}, "<C-S-P>", _7_, {noremap = true, silent = true})
local function _8_()
return (harpoon.list):next()
end
return vim.keymap.set({"n"}, "<C-S-N>", _8_, {noremap = true, silent = true})