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

24 lines
525 B
Lua
Raw Normal View History

local status_ok, harpoon = pcall(require, "harpoon")
if not status_ok then
return
end
local nmap = require("opdavies.keymap").nmap
harpoon.setup {}
nmap { "<M-h><M-l>", require("harpoon.ui").toggle_quick_menu }
nmap { "<M-h><M-m>", require("harpoon.mark").add_file }
nmap { "<leader>hl", require("harpoon.ui").toggle_quick_menu }
nmap { "<leader>hm", require("harpoon.mark").add_file }
2023-08-13 23:50:47 +00:00
for i = 1, 5 do
nmap {
string.format("<space>%s", i),
function()
require("harpoon.ui").nav_file(i)
end,
}
end