nvim: stop using after

rationale: https://vi.stackexchange.com/a/12735
This commit is contained in:
Primrose 2025-07-08 14:56:01 +02:00
parent dad88aa92f
commit 1bdcd3386e
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
13 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,20 @@
local harpoon = require("harpoon")
local map = vim.keymap.set
harpoon:setup {
settings = { save_on_toggle = true },
}
-- add and view
map({ "n", "i" }, "<A-c>", function() harpoon:list():add() end)
map({ "n", "i" }, "<A-g>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
-- switch it up!
map({ "n", "i" }, "<A-h>", function() harpoon:list():select(1) end)
map({ "n", "i" }, "<A-t>", function() harpoon:list():select(2) end)
map({ "n", "i" }, "<A-n>", function() harpoon:list():select(3) end)
map({ "n", "i" }, "<A-s>", function() harpoon:list():select(4) end)
map({ "n", "i" }, "<A-m>", function() harpoon:list():select(5) end)
map({ "n", "i" }, "<A-w>", function() harpoon:list():select(6) end)
map({ "n", "i" }, "<A-v>", function() harpoon:list():select(7) end)
map({ "n", "i" }, "<A-z>", function() harpoon:list():select(8) end)