Fix terminal detection

This commit is contained in:
David Holland 2020-08-17 13:55:42 +02:00
parent 4f982ea624
commit 9d805e8b11
Signed by: DustVoice
GPG Key ID: 47068995A14EDCA9
1 changed files with 3 additions and 1 deletions

View File

@ -8,7 +8,8 @@ runtime platform.vim
if g:platform ==? "linux"
"autocmd VimLeave * set guicursor=a:ver35-blinkon0
"set guicursor=
if $TERM ==? "alacritty"
let supported_terminals=["alacritty", "st-256color", "xterm-256color", "screen"]
if index(supported_terminals, $TERM) != -1
set termguicolors
else
set notermguicolors
@ -19,6 +20,7 @@ elseif g:platform ==? "xterm"
set notermguicolors
set guicursor=
set t_Co=
autocmd ColorScheme dracula hi Visual cterm=reverse
else
set termguicolors
endif