Adds nvim config as home manager module
This commit is contained in:
parent
5a9ad9bbd1
commit
98f4a6679e
34 changed files with 1260 additions and 0 deletions
39
home/modules/nvim/config/lua/plugins/harpoon.lua
Normal file
39
home/modules/nvim/config/lua/plugins/harpoon.lua
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
return {
|
||||
"ThePrimeagen/harpoon",
|
||||
branch = "harpoon2",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
config = function()
|
||||
local harpoon = require("harpoon")
|
||||
|
||||
harpoon:setup()
|
||||
|
||||
vim.keymap.set("n", "<leader>ha", function()
|
||||
harpoon:list():add()
|
||||
end)
|
||||
|
||||
vim.keymap.set("n", "<leader>hx", function()
|
||||
harpoon:list():select(1)
|
||||
end)
|
||||
vim.keymap.set("n", "<leader>hc", function()
|
||||
harpoon:list():select(2)
|
||||
end)
|
||||
vim.keymap.set("n", "<leader>hv", function()
|
||||
harpoon:list():select(3)
|
||||
end)
|
||||
vim.keymap.set("n", "<leader>hs", function()
|
||||
harpoon:list():select(4)
|
||||
end)
|
||||
|
||||
vim.keymap.set("n", "<leader>hp", function()
|
||||
harpoon:list():prev()
|
||||
end)
|
||||
|
||||
vim.keymap.set("n", "<leader>hn", function()
|
||||
harpoon:list():next()
|
||||
end)
|
||||
|
||||
vim.keymap.set("n", "<leader>hh", function()
|
||||
harpoon.ui:toggle_quick_menu(harpoon:list())
|
||||
end)
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue