⚙️ config(nvim): harpoon binds for splits and options deleted
This commit is contained in:
parent
1345c53dd6
commit
ea6cb2869a
2 changed files with 20 additions and 9 deletions
|
@ -22,14 +22,25 @@ return {
|
||||||
{ "<M-]>", function() require("harpoon"):list():next() end, desc = "Next Harpoon File" },
|
{ "<M-]>", function() require("harpoon"):list():next() end, desc = "Next Harpoon File" },
|
||||||
{ "<M-[>", function() require("harpoon"):list():prev() end, desc = "Prev Harpoon File" },
|
{ "<M-[>", function() require("harpoon"):list():prev() end, desc = "Prev Harpoon File" },
|
||||||
},
|
},
|
||||||
opts = {
|
config = function()
|
||||||
globalsettings = {
|
local harpoon = require("harpoon")
|
||||||
save_on_toggle = true,
|
harpoon:setup({})
|
||||||
enter_on_sendcmd = true,
|
|
||||||
},
|
harpoon:extend({
|
||||||
},
|
UI_CREATE = function(cx)
|
||||||
config = function(_, opts)
|
vim.keymap.set("n", "<C-v>", function()
|
||||||
require("harpoon").setup(opts)
|
harpoon.ui:select_menu_item({ vsplit = true })
|
||||||
|
end, { buffer = cx.bufnr })
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<C-x>", function()
|
||||||
|
harpoon.ui:select_menu_item({ split = true })
|
||||||
|
end, { buffer = cx.bufnr })
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<C-t>", function()
|
||||||
|
harpoon.ui:select_menu_item({ tabedit = true })
|
||||||
|
end, { buffer = cx.bufnr })
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
require("lazyvim.util").on_load("telescope.nvim", function()
|
require("lazyvim.util").on_load("telescope.nvim", function()
|
||||||
require("telescope").load_extension("harpoon")
|
require("telescope").load_extension("harpoon")
|
||||||
|
|
|
@ -4,6 +4,6 @@ return {
|
||||||
fps = 75,
|
fps = 75,
|
||||||
stages = "slide",
|
stages = "slide",
|
||||||
render = "wrapped-compact",
|
render = "wrapped-compact",
|
||||||
timeout = 1000,
|
timeout = 2000,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue