Skip to content
Myr

[vim] Use cterm colors on Windows (#1793)

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

Truecolor does not work on default Windows terminal. It is a problem in neovim GUIs. https://github.com/sainnhe/edge/issues/5#issuecomment-565748240

authored by Jan Edmund Lazo · committed by Junegunn Choi · parent a9906c7 · Browse files · 1 file+1 added−1 removed
This commit

State

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

Trailers

  • https: //github.com/sainnhe/edge/issues/5#issuecomment-565748240

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:plugin/fzf.vim+1 added-1 removed
242 unmodified lines
243 endtry244endfunction245246function! s:get_color(attr, ...)247 let gui = has('termguicolors') && &termguicolors247 let gui = !s:is_win && !has('win32unix') && has('termguicolors') && &termguicolors248 let fam = gui ? 'gui' : 'cterm'249 let pat = gui ? '^#[a-f0-9]\+' : '^[0-9]\+$'250 for group in a:000251 let code = synIDattr(synIDtrans(hlID(group)), a:attr, fam)
573 unmodified lines