harpoon, multicursor, undotree
This commit is contained in:
parent
eb3588923f
commit
be296480d9
5 changed files with 76 additions and 3 deletions
50
lua/custom/plugins/harpoon.lua
Normal file
50
lua/custom/plugins/harpoon.lua
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
return {
|
||||
"theprimeagen/harpoon",
|
||||
branch = "harpoon2",
|
||||
lazy = false,
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
config = function()
|
||||
require("harpoon"):setup()
|
||||
end,
|
||||
keys = {
|
||||
{
|
||||
"<leader>h",
|
||||
function() require("harpoon"):list():append() end,
|
||||
desc =
|
||||
"harpoon file",
|
||||
},
|
||||
{
|
||||
"<C-e>",
|
||||
function()
|
||||
local harpoon = require("harpoon")
|
||||
harpoon.ui:toggle_quick_menu(harpoon:list())
|
||||
end,
|
||||
desc =
|
||||
"harpoon quick menu",
|
||||
},
|
||||
{
|
||||
"<leader>1",
|
||||
function() require("harpoon"):list():select(1) end,
|
||||
desc =
|
||||
"harpoon to file 1",
|
||||
},
|
||||
{
|
||||
"<leader>2",
|
||||
function() require("harpoon"):list():select(2) end,
|
||||
desc =
|
||||
"harpoon to file 2",
|
||||
},
|
||||
{
|
||||
"<leader>3",
|
||||
function() require("harpoon"):list():select(3) end,
|
||||
desc =
|
||||
"harpoon to file 3",
|
||||
},
|
||||
{
|
||||
"<leader>4",
|
||||
function() require("harpoon"):list():select(4) end,
|
||||
desc =
|
||||
"harpoon to file 4",
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue