mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 22:59:15 +00:00
parent
dad88aa92f
commit
1bdcd3386e
13 changed files with 0 additions and 0 deletions
20
.config/nvim/plugin/harpoon.lua
Normal file
20
.config/nvim/plugin/harpoon.lua
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue