Only enable truecolors when supported
This commit is contained in:
parent
129ba00bad
commit
82d0921ac0
2
init.vim
2
init.vim
|
@ -9,7 +9,7 @@ if g:platform ==? "linux"
|
||||||
"autocmd VimLeave * set guicursor=a:ver35-blinkon0
|
"autocmd VimLeave * set guicursor=a:ver35-blinkon0
|
||||||
"set guicursor=
|
"set guicursor=
|
||||||
let supported_terminals=["alacritty", "st-256color", "xterm-256color", "screen", "screen-256color"]
|
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
|
set termguicolors
|
||||||
else
|
else
|
||||||
set notermguicolors
|
set notermguicolors
|
||||||
|
|
Loading…
Reference in New Issue