@@ -15,7 +15,7 @@ tabline.config = {
1515 {
1616 kind = " tabs" ,
1717 condition = function ()
18- return vim .g .__show_bufs ~= true ;
18+ return vim .g .bars_tabline_show_buflist ~= true ;
1919 end ,
2020
2121
@@ -68,7 +68,7 @@ tabline.config = {
6868 {
6969 kind = " bufs" ,
7070 condition = function ()
71- return vim .g .__show_bufs == true ;
71+ return vim .g .bars_tabline_show_buflist == true ;
7272 end ,
7373
7474 separator = " " ,
@@ -144,9 +144,9 @@ tabline.render = function ()
144144 return " " ;
145145 end
146146
147- tabline .update_id ();
147+ tabline .update_style ();
148148
149- local tlID = vim .g .__tlID or " default" ;
149+ local tlID = vim .g .bars_tabline_style or " default" ;
150150 local config = tabline .config [tlID ];
151151
152152 if type (config ) ~= " table" then
@@ -199,8 +199,8 @@ tabline.detach = function ()
199199 --- | fE
200200end
201201
202- --- Updates the configuration ID for {window} .
203- tabline .update_id = function ()
202+ --- Updates the configuration style for the tabline .
203+ tabline .update_style = function ()
204204 --- | fS
205205
206206 --- @type string[]
@@ -209,7 +209,7 @@ tabline.update_id = function ()
209209 local ignore = { " default" };
210210 table.sort (keys );
211211
212- local ID = " default" ;
212+ local style = " default" ;
213213
214214 for _ , key in ipairs (keys ) do
215215 if vim .list_contains (ignore , key ) then
@@ -222,13 +222,13 @@ tabline.update_id = function ()
222222 local tmp = tabline .config [key ];
223223
224224 if tmp .condition == true then
225- ID = key ;
225+ style = key ;
226226 elseif type (tmp .condition ) == " function" then
227227 --- @diagnostic disable-next-line
228228 local can_eval , val = pcall (tmp .condition , buffer , window );
229229
230230 if can_eval and val then
231- ID = key ;
231+ style = key ;
232232 end
233233 end
234234
@@ -237,7 +237,7 @@ tabline.update_id = function ()
237237 :: continue::
238238 end
239239
240- vim .g .__tlID = ID ;
240+ vim .g .bars_tabline_style = style ;
241241 tabline .state .attached = true ;
242242
243243 --- | fE
0 commit comments