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
42 stars 5 forks source link

tabline_z empty in config but flashing workspace name #36

Open jamesredwards opened 5 days ago

jamesredwards commented 5 days ago

Have overridden the default config to use tabline_z = {} but it flashes the current workspace name on and off very quickly (assume in line with the status update in the default config). if i change this to 'datetime' or something else it does the same. can't seem to fix. any advice?

michaelbrusegard commented 5 days ago

I am unable to reproduce this. Are you on the latest version of the plugin?

This is my config, but with tabline_z = {} and it seems to work:

  tabline.setup({
    options = {
      theme = 'Catppuccin Mocha',
      section_separators = {
        left = wezterm.nerdfonts.ple_right_half_circle_thick,
        right = wezterm.nerdfonts.ple_left_half_circle_thick,
      },
      component_separators = {
        left = wezterm.nerdfonts.ple_right_half_circle_thin,
        right = wezterm.nerdfonts.ple_left_half_circle_thin,
      },
      tab_separators = {
        left = wezterm.nerdfonts.ple_right_half_circle_thick,
        right = wezterm.nerdfonts.ple_left_half_circle_thick,
      },
    },
    sections = {
      tabline_a = {
        { 'mode', fmt = string.lower },
      },
      tab_active = {
        { Attribute = { Intensity = 'Bold' } },
        { Foreground = { Color = colors.ansi[6] } },
        'index',
        'ResetAttributes',
        { Foreground = { Color = colors.foreground } },
        { 'parent', padding = 0 },
        '/',
        { Attribute = { Intensity = 'Bold' } },
        { 'cwd', padding = { left = 0, right = 1 } },
        { 'zoomed', padding = 0 },
      },
      tab_inactive = { 'index', { 'process', icons_only = true, padding = 0 } },
      tabline_x = {},
      tabline_y = { 'ram', 'cpu' },
      tabline_z = {},
    },
    extensions = {
      'resurrect',
      'smart_workspace_switcher',
      'quick_domains',
      'presentation',
    },
  })
jamesredwards commented 4 days ago

Hi thanks for response. yes using most recent version. have changed the status_update_interval to 50000 to stop it annoying me for now. will do some more investigation