feat: add keybind to navigate barbecue nvim
This commit is contained in:
parent
bb5e0f6ab2
commit
cfef8a7ef8
1 changed files with 10 additions and 21 deletions
|
@ -189,28 +189,17 @@ return {
|
||||||
{
|
{
|
||||||
"barbecue.nvim",
|
"barbecue.nvim",
|
||||||
event = "BufEnter",
|
event = "BufEnter",
|
||||||
after = function()
|
keys = {
|
||||||
-- triggers CursorHold event faster
|
{
|
||||||
vim.opt.updatetime = 200
|
"<C-j>",
|
||||||
|
function()
|
||||||
require("barbecue").setup({
|
require("barbecue.ui").navigate(-1)
|
||||||
create_autocmd = false, -- prevent barbecue from updating itself automatically
|
|
||||||
})
|
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd({
|
|
||||||
"WinResized",
|
|
||||||
"BufWinEnter",
|
|
||||||
"CursorHold",
|
|
||||||
"InsertLeave",
|
|
||||||
|
|
||||||
-- include this if you have set `show_modified` to `true`
|
|
||||||
"BufModifiedSet",
|
|
||||||
}, {
|
|
||||||
group = vim.api.nvim_create_augroup("barbecue.updater", {}),
|
|
||||||
callback = function()
|
|
||||||
require("barbecue.ui").update()
|
|
||||||
end,
|
end,
|
||||||
})
|
desc = "Go to last treesitter node",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
after = function()
|
||||||
|
require("barbecue").setup()
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue