Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom statusline is not loaded when toggle theme #77

Closed
lixvbnet opened this issue May 19, 2022 · 3 comments
Closed

custom statusline is not loaded when toggle theme #77

lixvbnet opened this issue May 19, 2022 · 3 comments

Comments

@lixvbnet
Copy link

lixvbnet commented May 19, 2022

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):

  • Operating System
  • Terminal
  • Version of Neovim

Additional context
Add any other context about the problem here.

@siduck
Copy link
Member

siduck commented May 19, 2022

@siduck
Copy link
Member

siduck commented May 19, 2022

i will try to move feline highlights into the theme plugin

@siduck siduck transferred this issue from NvChad/NvChad May 20, 2022
@siduck siduck closed this as completed May 20, 2022
@siduck siduck reopened this May 20, 2022
siduck added a commit to NvChad/NvChad that referenced this issue May 20, 2022
siduck added a commit that referenced this issue May 20, 2022
@siduck siduck closed this as completed May 20, 2022
@siduck siduck reopened this May 20, 2022
@siduck
Copy link
Member

siduck commented May 20, 2022

@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

@siduck siduck closed this as completed May 20, 2022
br1anchen pushed a commit to br1anchen/NvChad that referenced this issue May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants