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,21 +191,23 @@ hi link rubyRailsARClassMethod Statement
hi link diffAdded String hi link diffAdded String
hi link diffRemoved Function hi link diffRemoved Function
let g:terminal_ansi_colors = [ if (has('terminal') && has('termguicolors') && &termguicolors) || has('gui_running')
\ '#3A3E42', let g:terminal_ansi_colors = [
\ '#BF6262', \ '#3A3E42',
\ '#A2A565', \ '#BF6262',
\ '#E9A96F', \ '#A2A565',
\ '#789BAD', \ '#E9A96F',
\ '#9F7AA5', \ '#789BAD',
\ '#638E8A', \ '#9F7AA5',
\ '#737673', \ '#638E8A',
\ '#5D6369', \ '#737673',
\ '#BF6262', \ '#5D6369',
\ '#A5A76E', \ '#BF6262',
\ '#E9A96F', \ '#A5A76E',
\ '#789BAD', \ '#E9A96F',
\ '#9F7AA5', \ '#789BAD',
\ '#9F7AA5', \ '#9F7AA5',
\ '#E3E8E3' \ '#9F7AA5',
\ ] \ '#E3E8E3'
\ ]
endif