mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Fix a bug about termguicolors
If we use nvim-qt, the TERM env variable may be empty. We should check if we are using the GUI.
This commit is contained in:
parent
b088f7adb8
commit
35a4fffe9d
5
ui.vim
5
ui.vim
@ -2,10 +2,9 @@
|
||||
"{{ General settings about colors
|
||||
" Enable true colors support (Do not use this option if your terminal does not
|
||||
" support true colors! For a comprehensive list of terminals supporting true
|
||||
" colors, see https://github.com/termstandard/colors and
|
||||
" https://bit.ly/2InF97t)
|
||||
" colors, see https://github.com/termstandard/colors and https://bit.ly/2InF97t.
|
||||
if exists("&termguicolors")
|
||||
if $TERM == "xterm-256color"
|
||||
if $TERM == "xterm-256color" || exists('g:GuiLoaded')
|
||||
set termguicolors
|
||||
else
|
||||
set notermguicolors
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user