nix flake update
This commit is contained in:
parent
9d2848cbd7
commit
bd58cf5821
8 changed files with 44 additions and 72 deletions
|
@ -2,46 +2,17 @@ local harpoon = require "harpoon"
|
|||
|
||||
harpoon:setup()
|
||||
|
||||
vim.keymap.set("n", "<leader>A", function()
|
||||
harpoon:list():prepend()
|
||||
end)
|
||||
|
||||
vim.keymap.set("n", "<leader>a", function()
|
||||
vim.keymap.set("n", "<leader>hm", function()
|
||||
harpoon:list():add()
|
||||
end)
|
||||
|
||||
vim.keymap.set("n", "<C-e>", function()
|
||||
vim.keymap.set("n", "<leader>hl", function()
|
||||
harpoon.ui:toggle_quick_menu(harpoon:list())
|
||||
end)
|
||||
|
||||
vim.keymap.set("n", "<C-h>", function()
|
||||
harpoon:list():select(1)
|
||||
end)
|
||||
|
||||
vim.keymap.set("n", "<C-j>", function()
|
||||
harpoon:list():select(2)
|
||||
end)
|
||||
|
||||
vim.keymap.set("n", "<C-k>", function()
|
||||
harpoon:list():select(3)
|
||||
end)
|
||||
|
||||
vim.keymap.set("n", "<C-l>", function()
|
||||
harpoon:list():select(4)
|
||||
end)
|
||||
|
||||
vim.keymap.set("n", "<leader><C-h>", function()
|
||||
harpoon:list():replace_at(1)
|
||||
end)
|
||||
|
||||
vim.keymap.set("n", "<leader><C-j>", function()
|
||||
harpoon:list():replace_at(2)
|
||||
end)
|
||||
|
||||
vim.keymap.set("n", "<leader><C-k>", function()
|
||||
harpoon:list():replace_at(3)
|
||||
end)
|
||||
|
||||
vim.keymap.set("n", "<leader><C-l>", function()
|
||||
harpoon:list():replace_at(4)
|
||||
end)
|
||||
-- Set <space>1..<space>5 be my shortcuts to moving to the files
|
||||
for _, idx in ipairs { 1, 2, 3, 4, 5 } do
|
||||
vim.keymap.set("n", string.format("<space>%d", idx), function()
|
||||
harpoon:list():select(idx)
|
||||
end)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue