1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 07:50:04 +08:00

fix(tabline): handle BufNew event

This commit is contained in:
Eric Wong 2024-07-07 11:43:48 +08:00
parent fe67bf23b8
commit 2b9fd55094

View File

@ -328,7 +328,7 @@ function M.enable()
end
end
local tabline_augroup = vim.api.nvim_create_augroup('spacevim_tabline', { clear = true })
vim.api.nvim_create_autocmd({ 'BufNewFile', 'BufReadPost' }, {
vim.api.nvim_create_autocmd({ 'BufNewFile', 'BufReadPost', 'BufNew' }, {
callback = vim.schedule_wrap(function(event)
if
vim.api.nvim_buf_is_valid(event.buf)