fix tabufline crash when formatting buf | (#1265)

This commit is contained in:
siduck
2022-06-26 06:24:52 +05:30
parent 876295ec02
commit 62b9c09f44
6 changed files with 35 additions and 22 deletions

View File

@@ -39,7 +39,7 @@ autocmd("BufEnter", {
vim.t.bufs = vim.api.nvim_list_bufs()
-- thx to https://github.com/ii14 & stores buffer per tab -> table
autocmd({ "BufAdd" }, {
autocmd("BufAdd", {
callback = function(args)
if vim.t.bufs == nil then
vim.t.bufs = { args.buf }
@@ -76,5 +76,5 @@ if require("core.utils").load_config().ui.tabufline_lazyloaded then
require("core.lazy_load").tabufline()
else
vim.opt.showtabline = 2
vim.opt.tabline = "%!v:lua.require('ui.tabline').run()"
vim.opt.tabline = "%!v:lua.require'ui.tabline'.run()"
end