|
if ! ( v:version >= 700 && has('syntax') && ( has('gui_running') || has('nvim') || &t_Co == 256 ) ) |
You disable the plugin if &t_Co != 256. This excludes terminals where &t_Co > 256 and doesn't consider termguicolors. 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 of css_color#i_am_disabled() so it's obvious. :)
Thank you for a very useful plugin.
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 > 256and doesn't considertermguicolors. An easy fix would be to use&t_Co >= 256or include an additional combined test of(has('termguicolors') && &termguicolors)prior to the&t_Cotest. 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.