NvChad / base46

NvChad's base46 theme plugin with caching ( Total re-write )
Other
206 stars 201 forks source link

custom statusline is not loaded when toggle theme #77

Closed lixvbnet closed 2 years ago

lixvbnet commented 2 years ago

Describe the bug Possible to load custom statusline when toggle/change theme?

I have following config in chadrc to use custom statusline:

M.plugins = {
    user = {
          ["feline-nvim/feline.nvim"] = {
              config = function()
                  require "custom.plugins.statusline"
              end,
          },
    },
}

but when toggle/change theme, it changes back to default statusline. Kind of weird, I have to quit NVIM and enter again to have my custom one.

To Reproduce configure custom statusline, PackerSync change theme.

Expected behavior custom statusline is loaded instead of default one.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

siduck commented 2 years ago

https://github.com/NvChad/extensions/blob/main/lua/nvchad/reload_theme.lua#L25

siduck commented 2 years ago

i will try to move feline highlights into the theme plugin

siduck commented 2 years ago

@lixvbnet make sure you use these highlight groups https://github.com/NvChad/base46/blob/master/lua/integrations/feline.lua or add your own

example https://github.com/NvChad/NvChad/blob/main/lua/plugins/configs/statusline.lua#L59