Fix termguicolors for tmux

This commit is contained in:
flyingscorpio@clevo 2022-07-03 23:28:42 +02:00
parent 1768c57919
commit 68eaf54616

View file

@ -132,7 +132,11 @@ let g:UltiSnipsExpandTrigger = '<S-tab>'
" }}}
" COLORS {{{
syntax on
set termguicolors
if $TERM =~# '256color' && ( $TERM =~# '^screen' || $TERM =~# '^tmux' )
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
set termguicolors
endif
let g:gruvbox_contrast_dark='hard'
let g:gruvbox_transparent_bg = 1
let g:gruvbox_italic = 1