File tree Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 522
522
---- ------------------------------------------------------------------
523
523
524
524
--- Sets up the statuscolumn module.
525
- --- @param config statuscolumn.config | nil
525
+ --- @param config statuscolumn.config | boolean | nil
526
526
statuscolumn .setup = function (config )
527
527
if type (config ) == " table" then
528
528
statuscolumn .config = vim .tbl_extend (" force" , statuscolumn .config , config );
Original file line number Diff line number Diff line change @@ -756,10 +756,12 @@ end
756
756
---- ------------------------------------------------------------------
757
757
758
758
--- Sets up the statusline module.
759
- --- @param config statusline.config | nil
759
+ --- @param config statusline.config | boolean | nil
760
760
statusline .setup = function (config )
761
761
if type (config ) == " table" then
762
762
statusline .config = vim .tbl_extend (" force" , statusline .config , config );
763
+ elseif type (config ) == " boolean" then
764
+ statusline .state .enable = config ;
763
765
end
764
766
765
767
for window , _ in pairs (statusline .state .attached_windows ) do
Original file line number Diff line number Diff line change @@ -309,10 +309,12 @@ end
309
309
---- ------------------------------------------------------------------
310
310
311
311
--- Sets up the tabline module.
312
- --- @param config tabline.config | nil
312
+ --- @param config tabline.config | boolean | nil
313
313
tabline .setup = function (config )
314
314
if type (config ) == " table" then
315
315
tabline .config = vim .tbl_extend (" force" , tabline .config , config );
316
+ elseif type (config ) == " boolean" then
317
+ tabline .state .enable = config ;
316
318
end
317
319
318
320
tabline .update_id ();
Original file line number Diff line number Diff line change @@ -895,10 +895,12 @@ end
895
895
---- ------------------------------------------------------------------
896
896
897
897
--- Sets up the winbar module.
898
- --- @param config winbar.config | nil
898
+ --- @param config winbar.config | boolean | nil
899
899
winbar .setup = function (config )
900
900
if type (config ) == " table" then
901
901
winbar .config = vim .tbl_extend (" force" , winbar .config , config );
902
+ elseif type (config ) == " boolean" then
903
+ winbar .state .enable = config ;
902
904
end
903
905
904
906
for window , _ in pairs (winbar .state .attached_windows ) do
You can’t perform that action at this time.
0 commit comments