neovim: add harpoon

This commit is contained in:
2024-06-20 20:25:42 +03:00
parent 01faead882
commit eeeac58c34
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
local harpoon = require("harpoon")
harpoon:setup()
vim.keymap.set("n", "<leader>a", function()
harpoon:list():add()
end)
vim.keymap.set("n", "<leader>h", function()
harpoon.ui:toggle_quick_menu(harpoon:list())
end)
vim.keymap.set("n", "<leader>1", function()
harpoon:list():select(1)
end)
vim.keymap.set("n", "<leader>2", function()
harpoon:list():select(2)
end)
vim.keymap.set("n", "<leader>3", function()
harpoon:list():select(3)
end)
vim.keymap.set("n", "<leader>4", function()
harpoon:list():select(4)
end)

View File

@@ -61,6 +61,8 @@ require("packer").startup(function(use)
use({ "b0o/SchemaStore.nvim" })
use({ "ThePrimeagen/harpoon", branch = "harpoon2" })
if PACKER_BOOTSTRAP then
require("packer").sync()
end