Update Harpoon keymaps
This commit is contained in:
parent
db13d667e9
commit
de117a56e2
|
@ -4,7 +4,8 @@
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
* Updated Telescope to ignore more files and directories by default.
|
* Update Harpoon keymaps and include keymaps to remove a single file and clear all files.
|
||||||
|
* Update Telescope to ignore more files and directories by default.
|
||||||
* Replace `christoomey/vim-tmux-navigator` with `alexghergh/nvim-tmux-navigation`.
|
* Replace `christoomey/vim-tmux-navigator` with `alexghergh/nvim-tmux-navigation`.
|
||||||
|
|
||||||
## 26th February 2024
|
## 26th February 2024
|
||||||
|
|
|
@ -1,18 +1,23 @@
|
||||||
require("harpoon").setup()
|
require("harpoon").setup()
|
||||||
|
|
||||||
|
local mark = require "harpoon.mark"
|
||||||
|
local ui = require "harpoon.ui"
|
||||||
|
|
||||||
local nmap = require("opdavies.keymap").nmap
|
local nmap = require("opdavies.keymap").nmap
|
||||||
|
|
||||||
nmap { "<M-h><M-l>", require("harpoon.ui").toggle_quick_menu }
|
nmap { "<M-h><M-l>", ui.toggle_quick_menu }
|
||||||
nmap { "<M-h><M-m>", require("harpoon.mark").add_file }
|
nmap { "<M-h><M-m>", mark.add_file }
|
||||||
|
|
||||||
nmap { "<leader>hl", require("harpoon.ui").toggle_quick_menu }
|
nmap { "<leader>ha", mark.add_file }
|
||||||
nmap { "<leader>hm", require("harpoon.mark").add_file }
|
nmap { "<leader>hc", mark.clear_all }
|
||||||
|
nmap { "<leader>ho", ui.toggle_quick_menu }
|
||||||
|
nmap { "<leader>hr", mark.rm_file }
|
||||||
|
|
||||||
for i = 1, 5 do
|
for i = 1, 5 do
|
||||||
nmap {
|
nmap {
|
||||||
string.format("<space>%s", i),
|
string.format("<space>%s", i),
|
||||||
function()
|
function()
|
||||||
require("harpoon.ui").nav_file(i)
|
ui.nav_file(i)
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
Reference in a new issue