You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make bufferline (stabline) to have a tab indicator at the right side, where it would show current tab number and other tabs like buffers dimmed. Basically make it look like in nvim-bufbar or in bufferline.nvim. Would be nice to show only numbers when there are more than one tabs in the session.
I think that it would make the stabline more complete and useful with this update.
Screenshot:
The text was updated successfully, but these errors were encountered:
local function get_tabs()
local tabs = {}
local current_tab = fn.tabpagenr()
for _, tabinfo in ipairs(fn.gettabinfo()) do
local tab = {
tabnr = tabinfo.tabnr,
current = tabinfo.tabnr == current_tab,
}
table.insert(tabs, tab)
end
return tabs
end
...
if M.options.show_tabs then
local tabs, tablist = get_tabs(), {}
for _, tab in ipairs(tabs) do
local level = tab.current and 'active' or 'inactive'
local tabname = set_hlgroup(fmt(' %d ', tab.tabnr), 'tabs', level)
table.insert(tablist, tabname)
end
table.insert(bufferline, table.concat(tablist, separator))
end
...
Make bufferline (stabline) to have a tab indicator at the right side, where it would show current tab number and other tabs like buffers dimmed. Basically make it look like in nvim-bufbar or in bufferline.nvim. Would be nice to show only numbers when there are more than one tabs in the session.
I think that it would make the stabline more complete and useful with this update.
Screenshot:
The text was updated successfully, but these errors were encountered: