Simplify termguicolors handling
This commit is contained in:
parent
a85fb47bb8
commit
6932873ac0
1 changed files with 4 additions and 5 deletions
|
@ -18,11 +18,10 @@ if !isdirectory($XDG_CACHE_HOME .. '/vim/pack')
|
||||||
PackUpdate
|
PackUpdate
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if has('gui_running') || has('termguicolors')
|
# If both Vim and the terminal it's running in support true colour, use it.
|
||||||
if $COLORTERM == 'truecolor'
|
# Otherwise we just fall back to 256-colour mode, or even the old 16-colour
|
||||||
&t_8f = "\<Esc>[38:2:%lu:%lu:%lum"
|
# mode if necessary!
|
||||||
&t_8b = "\<Esc>[48:2:%lu:%lu:%lum"
|
if has('termguicolors') && $COLORTERM == 'truecolor'
|
||||||
endif
|
|
||||||
set termguicolors
|
set termguicolors
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue