Skip to content

Commit

Permalink
fix(cookbook): fix autocmd for conditional tabline when nbufs > 1
Browse files Browse the repository at this point in the history
  • Loading branch information
rebelot committed Apr 8, 2023
1 parent 8fb1f07 commit 9c6ac77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -2029,7 +2029,7 @@ end
local buflist_cache = {}

-- setup an autocmd that updates the buflist_cache every time that buffers are added/removed
vim.api.nvim_create_autocmd({ "BufAdd", "BufDelete" }, {
vim.api.nvim_create_autocmd({ "VimEnter", "UIEnter", "BufAdd", "BufDelete" }, {
callback = function()
vim.schedule(function()
local buffers = get_bufs()
Expand Down

0 comments on commit 9c6ac77

Please sign in to comment.