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

tabline.apply_to_config() crashes if called before tabline.setup() #37

Closed JimtotheB closed 1 month ago

JimtotheB commented 1 month ago

If tabline.apply_to_config() is called before tabline.setup(), it will crash due to attempting to access nil table values, as they haven't been set yet. Specifically this call https://github.com/michaelbrusegard/tabline.wez/blob/9e6656b06e438f35d08d7a447318da03aba7a449/plugin/init.lua#L61

michaelbrusegard commented 1 month ago

Your tabline shows the Catpuccin Mocha colors, because that is the colors you have defined in your color_overrides table. If you want the colors from the theme you have set, in this case GruveboxDark, you should remove the color_ovverrides. The color_overrides table is meant to overwrite single color changes or provide a custom theme.