add options for tabufline : enabled, lazyload, override | fix (#1274)
This commit is contained in:
parent
9c07c5c2ed
commit
33550e9587
4 changed files with 33 additions and 18 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue