mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Fix true color support issue
Some terminal, for example, xshell, does not support true colors. In this case, we should not set the termguicolors option.
This commit is contained in:
parent
0621506858
commit
09a84d1622
6
ui.vim
6
ui.vim
@ -4,7 +4,13 @@
|
|||||||
" support true colors! For a comprehensive list of terminals supporting true
|
" support true colors! For a comprehensive list of terminals supporting true
|
||||||
" colors, see https://github.com/termstandard/colors and
|
" colors, see https://github.com/termstandard/colors and
|
||||||
" https://bit.ly/2InF97t)
|
" https://bit.ly/2InF97t)
|
||||||
|
if exists("&termguicolors")
|
||||||
|
if $TERM == "xterm-256color"
|
||||||
set termguicolors
|
set termguicolors
|
||||||
|
else
|
||||||
|
set notermguicolors
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
" Use dark background
|
" Use dark background
|
||||||
set background=dark
|
set background=dark
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user