-
Notifications
You must be signed in to change notification settings - Fork 81
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
truecolor terminals and termguicolors #186
Comments
Hi, sorry I didn’t get around to your bug report. Thank you for the PR. I do have some unreleased changes which include a fix (at least a partial one) for that… but I never finished and shipped them. To make amends I was going to just accept the PR even if it doesn’t look entirely as I’d prefer, so at least some fix is shipped, and leave my own preferences for later when I come back to it. But the more I look at the patch, the more questions I have unfortunately. 🙁 You are obviously right about the But about Also, making the loading of the plugin conditional on the current value of a variable seems like a problem. If the user currently has I don’t feel confident that I have the whole picture reasoned out yet. As for the |
I’ve pushed 950e803 with a minimal fix for the original issue regarding |
Yes, it is possible. A few examples being alacritty and kitty. Some software blows up if $ infocmp alacritty -1x | rg 'colors|pairs' # colors = decimal 256
colors#0x100,
pairs#0x7fff,
$ infocmp alacritty-direct -1x | rg 'colors|pairs' # colors > 256 decimal
colors#0x1000000,
pairs#0x7fff, The terminfo that ships with kitty sets |
:) when I first started debugging my setup, trying to find why css_colors wasn't working, it took a bit to figure out that it was disabled. I wrote the |
Have I understood you correctly that those both advertise 256 colors or more? If yes then they would not be examples because what I’m asking is whether there is a terminal where
Meaning that if I wonder if it would be necessary to combine that with a I should look at the Vim source but I have to cut this short for now. |
vim-css-color/autoload/css_color.vim
Line 6 in 5687a79
You disable the plugin if
&t_Co != 256
. This excludes terminals where&t_Co > 256
and doesn't considertermguicolors
. An easy fix would be to use&t_Co >= 256
or include an additional combined test of(has('termguicolors') && &termguicolors)
prior to the&t_Co
test. An additional suggestion is to define another empty function along the lines ofcss_color#i_am_disabled()
so it's obvious. :)Thank you for a very useful plugin.
The text was updated successfully, but these errors were encountered: