neovim: install harpoon
This commit is contained in:
18
neovim/.config/nvim/after/plugin/harpoon.lua
Normal file
18
neovim/.config/nvim/after/plugin/harpoon.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
local ui = require("harpoon.ui")
|
||||
local mark = require("harpoon.mark")
|
||||
|
||||
vim.keymap.set("n", "<leader>a", mark.add_file)
|
||||
vim.keymap.set("n", "<leader>s", ui.toggle_quick_menu)
|
||||
|
||||
vim.keymap.set("n", "<leader>1", function()
|
||||
ui.nav_file(1)
|
||||
end)
|
||||
vim.keymap.set("n", "<leader>2", function()
|
||||
ui.nav_file(2)
|
||||
end)
|
||||
vim.keymap.set("n", "<leader>3", function()
|
||||
ui.nav_file(3)
|
||||
end)
|
||||
vim.keymap.set("n", "<leader>4", function()
|
||||
ui.nav_file(4)
|
||||
end)
|
||||
@@ -71,6 +71,8 @@ require("packer").startup(function(use)
|
||||
|
||||
use({ "b0o/SchemaStore.nvim" })
|
||||
|
||||
use({ "ThePrimeagen/harpoon" })
|
||||
|
||||
if PACKER_BOOTSTRAP then
|
||||
require("packer").sync()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user