-
Notifications
You must be signed in to change notification settings - Fork 216
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
bug: highlights removed after changing colorscheme #654
Labels
bug
Something isn't working
Comments
+1, I had to use the following workaround -- Highlight groups have to be reinitialized after setting the color scheme
-- <https:/yetone/avante.nvim/issues/654>
vim.api.nvim_create_autocmd('ColorScheme', {
callback = function()
require('avante.highlights').setup()
end,
})
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
If I change the colorscheme during a session, or if the colorscheme is applied by a plugin loaded after avante, the highlights in the titles are not set.
To reproduce
Change colorscheme during a session
Expected behavior
The highlights in the titles should remain.
I notice that it works changing
api.nvim_create_autocmd("ColorSchemePre", {
to
api.nvim_create_autocmd("ColorScheme", {
Is
ColorSchemePre
used on purpose for other reasons?Environment
NVIM v0.10.0
Build type: Release
LuaJIT 2.1.1713773202
Repro
The text was updated successfully, but these errors were encountered: