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
Oliver Davies c40a03a456 Update Harpoon configuration
Replace usages of custom keybinding functions with `vim.keymap.set()`.
2024-05-16 18:28:30 +01:00

19 lines
517 B
Lua

require("harpoon").setup()
local mark = require "harpoon.mark"
local ui = require "harpoon.ui"
vim.keymap.set("n", "<M-h><M-l>", ui.toggle_quick_menu)
vim.keymap.set("n", "<M-h><M-m>", mark.add_file)
vim.keymap.set("n", "<leader>ha", mark.add_file)
vim.keymap.set("n", "<leader>hc", mark.clear_all)
vim.keymap.set("n", "<leader>ho", ui.toggle_quick_menu)
vim.keymap.set("n", "<leader>hr", mark.rm_file)
for i = 1, 5 do
vim.keymap.set("n", string.format("<space>%s", i), function()
ui.nav_file(i)
end)
end