.files/.config/nvim/plugin/harpoon.lua

16 lines
528 B
Lua

local harpoon = require("harpoon")
local map = vim.keymap.set
harpoon:setup {
settings = { save_on_toggle = true },
}
-- add and view
map("n", "<A-c>", function() harpoon:list():add() end)
map("n", "<A-g>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
-- switch it up!
map("n", "<A-h>", function() harpoon:list():select(1) end)
map("n", "<A-t>", function() harpoon:list():select(2) end)
map("n", "<A-n>", function() harpoon:list():select(3) end)
map("n", "<A-s>", function() harpoon:list():select(4) end)