Don't expose terminal_ansi_colors unless certain conditions are met

This commit is contained in:
Akshay Hegde 2021-06-13 19:59:01 -07:00
parent 012ff0065e
commit 1652c648b6
No known key found for this signature in database
GPG Key ID: 0AC668879C59205C
1 changed files with 21 additions and 19 deletions

View File

@ -8,7 +8,7 @@
" Setup {{{1 " Setup {{{1
hi clear hi clear
if has("gui_running") && &background !=# 'dark' if has('gui_running') && &background !=# 'dark'
set background=dark set background=dark
endif endif
@ -191,6 +191,7 @@ hi link rubyRailsARClassMethod Statement
hi link diffAdded String hi link diffAdded String
hi link diffRemoved Function hi link diffRemoved Function
if (has('terminal') && has('termguicolors') && &termguicolors) || has('gui_running')
let g:terminal_ansi_colors = [ let g:terminal_ansi_colors = [
\ '#3A3E42', \ '#3A3E42',
\ '#BF6262', \ '#BF6262',
@ -209,3 +210,4 @@ let g:terminal_ansi_colors = [
\ '#9F7AA5', \ '#9F7AA5',
\ '#E3E8E3' \ '#E3E8E3'
\ ] \ ]
endif