fzf icon indicating copy to clipboard operation
fzf copied to clipboard

allow NONE color

Open blockchainian opened this issue 1 year ago • 1 comments

this pr makes fzf gutter work for default background color NONE:

let g:fzf_colors = {
\   'gutter':  ['bg', 'Conceal']
\}

highlight Conceal ctermbg=NONE
  • before image

  • after

image

blockchainian avatar Jul 09 '23 05:07 blockchainian

Thanks, but this is not compatible with the current model where you can specify multiple highlight groups.

let g:fzf_colors = {
\   'gutter':  ['bg', 'Conceal', 'Normal', 'Comment']
\}

highlight Normal ctermbg=233
highlight Conceal ctermbg=NONE

['bg', 'Conceal', 'Normal', 'Comment'] translates to "Use the background color of the first highlight group that has a background color", and that is 233 of Normal. But with your patch, it will choose -1 for Conceal, ignoring the rest of the list.

junegunn avatar Jul 11 '23 09:07 junegunn