add options for tabufline : enabled, lazyload, override | fix (#1274)

This commit is contained in:
siduck 2022-06-27 07:16:33 +05:30
parent 9c07c5c2ed
commit 33550e9587
4 changed files with 33 additions and 18 deletions

View file

@ -228,15 +228,16 @@ M.tabuflinePrev = function()
end
end
end
-- closes tab + all of its buffers
M.tabuflineCloseTab = function()
M.closeAllBufs = function(action)
local bufs = vim.t.bufs or {}
vim.cmd "tabclose"
for _, buf in ipairs(bufs) do
vim.cmd("bd" .. buf)
M.close_buffer(buf)
end
vim.cmd(action == "closeTab" and "tabclose" or "enew")
end
return M