Lines Matching refs:color
85 function! s:get_hi_str(color, place) abort argument
86 if a:color >= 0 && a:color <= 255
88 return ' gui' . a:place . '=' . s:termguicolors[a:color]
89 elseif a:color <= 7 || &t_Co == 256 || &t_Co == 88
90 return ' cterm' . a:place . '=' . a:color
98 let [_five, color] = remove(a:colors, 0, 1)
99 if _five != '5' || color == ''
102 return str2nr(color)
133 " ANSI SGR foreground color
136 " ANSI SGR background color
139 " ANSI SGR+8 foreground color (xterm 16-color support)
142 " ANSI SGR+8 background color (xterm 16-color support)
145 " Foreground for terminals with 88/256 color support
146 let color = s:get_256color(colors)
147 if color == -1
150 let hi_str .= s:get_hi_str(color, 'fg')
152 " Background for terminals with 88/256 color support
153 let color = s:get_256color(colors)
154 if color == -1
157 let hi_str .= s:get_hi_str(color, 'bg')
165 " Check whether we have already defined this color