michaelbrusegard / tabline.wez

A versatile and easy to use retro tab bar plugin for the WezTerm terminal emulator created with the lualine.nvim configuration format
MIT License
55 stars 5 forks source link

Disable all sections but mode #25

Closed sebiwi closed 1 month ago

sebiwi commented 1 month ago

Hello,

I'm trying to only enable the mode section of the bar, but all the other sections (available disk, etc) keep appearing.

This is my config:

sections = { tabline_a = { 'mode' } }

Is this normal, or a bug?

Thanks!

michaelbrusegard commented 1 month ago

This is as expected. You need to overwrite the other sections with empty tables. If you don't it will use the default config. tabline_a is set to mode by default so you actually do not need to set it. See example below:

sections = {
  tabline_b = {},
  tabline_c = {},
  tab_active = {},
  tab_inactive = {},
  tabline_x = {},
  tabline_y = {},
  tabline_z = {},
}