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
494 B
Lua
Raw Normal View History

require("harpoon").setup()
2024-02-27 22:30:54 +00:00
local mark = require "harpoon.mark"
local ui = require "harpoon.ui"
local nmap = require("opdavies.keymap").nmap
2024-02-27 22:30:54 +00:00
nmap { "<M-h><M-l>", ui.toggle_quick_menu }
nmap { "<M-h><M-m>", mark.add_file }
2024-02-27 22:30:54 +00:00
nmap { "<leader>ha", mark.add_file }
nmap { "<leader>hc", mark.clear_all }
nmap { "<leader>ho", ui.toggle_quick_menu }
nmap { "<leader>hr", mark.rm_file }
2023-08-13 23:50:47 +00:00
for i = 1, 5 do
nmap {
string.format("<space>%s", i),
function()
2024-02-27 22:30:54 +00:00
ui.nav_file(i)
end,
}
end