-
Notifications
You must be signed in to change notification settings - Fork 46
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
regression: Re-include hi clear
etc in apply breaks highlight for startup screen
#94
Comments
Thanks for the bisect!!! I will try and get a clean reproduction locally. What terminal and system are you on, probably not relevant but good to know. I did notice something similar when doing the lua-hl update but at that time it was an actual bug (from memory, it was related to the code posted, not calling hl-clear, but in the realtime My suspicion was that it was something in nvim itself and the lua highlight API, where:
It's possible that the You could experiment with sticking a You could also check I also wonder if applying the commands one at a time, and ensuring the |
Can you confirm whether you are setting the highlight group You can see the value and where it is set with
e: actually I see the status line is also mis-coloured. Also how are you applying your scheme, with |
Yeah, SpecialKey is set, funnily enough it also shows all the proper highlights as set by lush (:hi shows what I'd expect based on my color scheme)
What makes the highlights update properly for me is opening up the help with
How do I check? the lush plugin is based on some older version of the skeleton... repo is here if that helps: https://github.com/brunnre8/gruvbox.nvim I'm sadly not very familiar with the highlight functionality of nvim myself (hence me using lush 😉 ) |
Missed that part, sorry:
|
A temporary workaround that I've been using is to just call |
I have gotten a reproduction in a container. I couldn't reproduce it with my own config and I cant say what the difference is. Even disabling all my plugins and settings wont reproduce it locally. I even have basically the identical setup os/term wise as you. Including the I stuck an Tried wrapping the calls in one, or separate Not really sure how to proceed or what else to test... |
Out of curiosity, what plugin manager do you use? I wonder if there could be any relation between the way a plugin manager loads things that could be causing this behaviour? |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
See #94 Some kind of bug with `hi clear` and `nvim_set_hl` that wont set highlights correctly on the intro screen. Applying any kind of highlight repairs the colorscheme, so it's not exhibited when loading a file directly as most filetype plugins are going to set a highlight. The intro screen does not do this, so we mannually insert one `hi ...` command after applying the colorscheme to ensure all highlights were applied (or whatever is going on) until we can fix upstream.
Fixed in 3df0790. A clean install of neovim 0.7.2, lush and brunnre8/gruvbox.nvim, inside a arch container does reproduce the issue. Zero idea what it is about my "actual" install that wont reproduce it. Must be some file somewhere. Anyway, all that aside, it's at least more reproducible than non-reproducible. Applying any kind of highlight via the old command fixes it, so we just include one after we finish calling I imagine the effect is quite wide spread but most people open a file directly, have a start up screen or some other plugin, one of these things is bound to call |
Thanks a bunch! |
7556467 breaks the highlights for the initial screen when nvim is started (v0.8.0-dev+266-g976f32aa7a, but same thing happens on the v0.7* release)
I've bisected the issue to the above mentioned commit.
The issue manifests itself when one just starts nvim, without doing anything
lush.nvim v1.0.0:
lush.nvim main:
Issuing some nonsensical highlight command then resets the highlights to the proper colors (though that does get rid of the welcome screen so it's harder to tell).
So something seems to be off or missing a redraw request to nvim?
Not sure if this is a lush bug or neovim, in case I can help you in any way please say how.
The text was updated successfully, but these errors were encountered: