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",
|
||||
event = "BufEnter",
|
||||
after = function()
|
||||
-- triggers CursorHold event faster
|
||||
vim.opt.updatetime = 200
|
||||
|
||||
require("barbecue").setup({
|
||||
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()
|
||||
keys = {
|
||||
{
|
||||
"<C-j>",
|
||||
function()
|
||||
require("barbecue.ui").navigate(-1)
|
||||
end,
|
||||
})
|
||||
desc = "Go to last treesitter node",
|
||||
},
|
||||
},
|
||||
after = function()
|
||||
require("barbecue").setup()
|
||||
end,
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue