Only enable truecolors when supported

This commit is contained in:
David Holland 2020-09-03 19:30:24 +02:00
parent 129ba00bad
commit 82d0921ac0
Signed by: DustVoice
GPG Key ID: 47068995A14EDCA9
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ if g:platform ==? "linux"
"autocmd VimLeave * set guicursor=a:ver35-blinkon0
"set guicursor=
let supported_terminals=["alacritty", "st-256color", "xterm-256color", "screen", "screen-256color"]
if index(supported_terminals, $TERM) != -1
if index(supported_terminals, $TERM) != -1 && has("termguicolors")
set termguicolors
else
set notermguicolors