neovim: add harpoon
This commit is contained in:
23
neovim/.config/nvim/after/plugin/harpoon.lua
Normal file
23
neovim/.config/nvim/after/plugin/harpoon.lua
Normal 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)
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user