This repository has been archived on 2025-01-07. You can view files and clone it, but cannot push or open issues or pull requests.
opdavies.nvim/after/plugin/harpoon.lua

27 lines
388 B
Lua
Raw Normal View History

2023-12-11 17:45:36 +00:00
local harpoon = require "harpoon"
local nmap = require("opdavies.keymap").nmap
2023-12-11 17:45:36 +00:00
harpoon:setup()
2023-12-11 17:45:36 +00:00
nmap {
"<leader>hl",
function()
harpoon.ui:toggle_quick_menu(harpoon:list())
end,
}
nmap {
"<leader>hm",
function()
harpoon:list():append()
end,
}
2023-08-13 23:50:47 +00:00
for i = 1, 5 do
nmap {
string.format("<space>%s", i),
function()
2023-12-11 17:45:36 +00:00
harpoon:list():select(i)
end,
}
end