nvim/after/plugin/harpoon.lua

14 lines
525 B
Lua
Raw Normal View History

2023-12-02 16:51:36 +01:00
local harpoon = require("harpoon")
2023-06-28 18:50:56 +02:00
2023-12-02 16:51:36 +01:00
-- REQUIRED
harpoon:setup()
-- REQUIRED
2023-06-28 18:50:56 +02:00
2023-12-02 16:51:36 +01:00
vim.keymap.set("n", "<leader>a", function() harpoon:list():append() end)
vim.keymap.set("n", "<leader>h", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
vim.keymap.set("n", "<C-h>", function() harpoon:list():select(1) end)
vim.keymap.set("n", "<C-j>", function() harpoon:list():select(2) end)
vim.keymap.set("n", "<C-k>", function() harpoon:list():select(3) end)
vim.keymap.set("n", "<C-l>", function() harpoon:list():select(4) end)