-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Background color for inactive windows / per window #5302
Comments
I've always been thinking about this, why not step further, let [n]vim maintains separate syntax/color scheme data info per window. Then we can, for example, edit a python buffer in one window applying a color scheme that is best for python language, and edit a c buffer in another window applying a different color scheme that is best for c language. |
I'd also really like a good way to distinguish the currently active window. Though I'm not sure dimming the background is ideal, but the thing needed here may be useful for other cases. One might say that window-local highlight groups are needed, but that seems like a mess for little gain. Instead
By the way, since Nvim supports mapping But again that would work better if non-text could be highlighted by |
How much more useful would that be compared to
You can already assign different colors to the specific syntax groups for C and python. E.g.: hi pythonFunction ...
hi cUserFunction ... |
Different color scheme authors focus on limited range of different languages, they craft their color scheme file often according to their daily use scenario. So I think each color scheme file has its focused one or ones among hundreds existing languages. Similar to what GitHub did, it gives each language a representative color, each language appears This feature make [n]vim more versatile on colorization (maybe more colorful) especially on true color environments. Something like this (simulated by tmux panes) However I admit that it is not a urgent or key feature to [n]vim, just a wishlist item. |
closed by #6597 |
What do you think about having a highlighting group for inactive windows?
I have created a plugin based on a hack, which uses
&cursorcolumn
(https://github.com/blueyed/vim-diminactive/), and also asked for it in Vim a while ago (vim/vim#325) without any feedback.I am experiencing some issues myself with the plugin from time to time, probably because of other plugins over-using
:noautocmd
when going back and forth between windows.Wouldn't it be rather trivial to support this in Neovim/Vim directly: just have a different background for non-current windows?!
In a perfect world this would also apply the "current" style to any location list for the current window.
Not sure about quickfix lists in this regard. Maybe there should be a way to always not dim them (i.e. not apply the non-active background to them)?
The text was updated successfully, but these errors were encountered: