feat(nvim): configure harpoon
This commit is contained in:
parent
f50019dc19
commit
25c6a44a2a
20
roles/neovim/files/after/plugin/harpoon.lua
Normal file
20
roles/neovim/files/after/plugin/harpoon.lua
Normal file
|
@ -0,0 +1,20 @@
|
|||
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 }
|
||||
|
||||
for i = 1, 5 do
|
||||
nmap {
|
||||
string.format("<space>%s", i),
|
||||
function()
|
||||
require("harpoon.ui").nav_file(i)
|
||||
end,
|
||||
}
|
||||
end
|
Loading…
Reference in a new issue