Skip to content
Myr

[vim] Add option to force 24 bit colors on Windows (#2889)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Carl Kamholtz · committed by GitHub · parent 68cf393 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:plugin/fzf.vim+2 added-1 removed
340 unmodified lines
341 endtry342endfunction343344function! s:get_color(attr, ...)345 let gui = !s:is_win && !has('win32unix') && has('termguicolors') && &termguicolors345 " Force 24 bit colors: g:fzf_force_termguicolors (temporary workaround for https://github.com/junegunn/fzf.vim/issues/1152)346 let gui = get(g:, 'fzf_force_termguicolors', 0) || (!s:is_win && !has('win32unix') && has('termguicolors') && &termguicolors)347 let fam = gui ? 'gui' : 'cterm'348 let pat = gui ? '^#[a-f0-9]\+' : '^[0-9]\+$'349 for group in a:000350 let code = synIDattr(synIDtrans(hlID(group)), a:attr, fam)
710 unmodified lines