We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
tabs
1 parent 5ae59c2 commit 8e0b8b8Copy full SHA for 8e0b8b8
lua/bars/components/tabline.lua
@@ -138,11 +138,14 @@ tlC.tabs = function (config)
138
utils.create_segmant(tab_config.padding_left, tab_config.padding_left_hl or tab_config.hl),
139
140
utils.create_segmant(tab_config.icon, tab_config.icon_hl),
141
- utils.create_segmant(tab, tab_config.hl)
+ utils.create_segmant(tostring(tab), tab_config.hl)
142
});
143
144
if type(tab_config.win_count) == "string" then
145
local wins = vim.api.nvim_tabpage_list_wins(tab);
146
+ wins = vim.tbl_filter(function (win)
147
+ return vim.api.nvim_win_get_tabpage(win) == tab;
148
+ end, wins);
149
150
_o = table.concat({
151
_o,
0 commit comments