To use tabline.wez, you must call tabline.setup() with a configuration table. The configuration is divided into options (global settings), sections (defining what components appear in which part of the bar), and extensions.
Important Setup Step: After calling tabline.setup(), you must call tabline.apply_to_config(config) passing your WezTerm config object. This applies necessary WezTerm settings (like enabling the retro tab-bar) required for the plugin to function. If you have already manually configured these in wezterm.lua, you can skip this call.
tabline.setup({
options = {
icons_enabled = true,
theme = 'Catppuccin Mocha',
tabs_enabled = true,
-- ... other options
},
sections = {
tabline_a = { 'mode' },
tab_active = { 'index', 'cwd' },
-- ... other sections
},
})
tabline.apply_to_config(config)