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

Can't override icon for `workspace`. #27

Closed tj-smith47 closed 1 month ago

tj-smith47 commented 1 month ago

Have tried both of the 2 approaches below, neither set the icon. Perhaps not a bug, but rather a documentation gap. Either way, any help for how to set this is much appreciated:

tabline_b = {
    "workspace",
    icon = { "default", wezterm.nerdfonts.dev_apple, color = { fg = scheme.ansi[3] } },
},

-- and

tabline_b = {
    "workspace",
    icon = { wezterm.nerdfonts.dev_apple, color = { fg = scheme.ansi[3] } },
},

where local scheme = wezterm.color.get_builtin_schemes()["Dracula (Official)"]. Can you see what I might be doing wrong?

michaelbrusegard commented 1 month ago

Seems to be a bug. I will try to fix it

michaelbrusegard commented 1 month ago

@tj-smith47 Nevermind, there is no bug. You are missing the brackets around the workspace object so the icon is never applied to anything. This is how it should look:

      tabline_b = {
        {
          'workspace',
          icon = { wezterm.nerdfonts.dev_apple, color = { fg = colors.ansi[3] } },
        },
      },
michaelbrusegard commented 1 month ago

I spent way to much time trying to debug this only to there not being anything wrong with the code. Well hopefully you got everything working now.

tj-smith47 commented 1 month ago

@michaelbrusegard sorry about that. I appreciate your time, it did resolve my issue.

michaelbrusegard commented 1 month ago

Nice! I am happy you got it working :). I got a good refresher on some of the code now