1
0
neovim_config/lua/barink/plugins/harpoon.lua
Nigel Barink f47b2f2e58
FEAT: Added lualine and harpoon
FIX: Fixed fidget setup
FIX: Added hopefully proper lsp config
2024-03-26 21:07:08 +01:00

23 lines
876 B
Lua

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", "<C-e>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
vim.keymap.set("n", "<leader>1", function() harpoon:list():select(1) end)
vim.keymap.set("n", "<leader>2", function() harpoon:list():select(2) end)
vim.keymap.set("n", "<leader>3", function() harpoon:list():select(3) end)
vim.keymap.set("n", "<leader>4", function() harpoon:list():select(4) end)
vim.keymap.set("n", "<C-S-Z>", function() harpoon:list():prev() end)
vim.keymap.set("n", "<C-S-X>", function() harpoon:list():next() end)
end
}