-
Notifications
You must be signed in to change notification settings - Fork 257
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
How do I conditionally change the status line colour? #640
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've figured that I can subscribe to
vis.events.WIN_STATUS
to get my statusline to contain exactly what I want it to, but I wish I could additionally change the background colour of the statusline according to the editor mode I'm in.For example, the statusbar could be purple when I'm in insert mode.
Here's my best attempt at what I figure it should look like:
But that does nothing… no errors, just nothing. I guess I'd need to tell it to reload the style somehow, so it actually gets changed?
Is overwriting style definitions like this even supported?
Maybe I should be requesting a "mode changed" event type instead, and putting this in there?
The text was updated successfully, but these errors were encountered: