require("harpoon").setup() local mark = require "harpoon.mark" local ui = require "harpoon.ui" local nmap = require("opdavies.keymap").nmap nmap { "", ui.toggle_quick_menu } nmap { "", mark.add_file } nmap { "ha", mark.add_file } nmap { "hc", mark.clear_all } nmap { "ho", ui.toggle_quick_menu } nmap { "hr", mark.rm_file } for i = 1, 5 do nmap { string.format("%s", i), function() ui.nav_file(i) end, } end