Don't expose terminal_ansi_colors unless certain conditions are met
This commit is contained in:
parent
012ff0065e
commit
1652c648b6
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue