mirror of
https://github.com/lifepillar/vim-solarized8.git
synced 2025-12-10 15:57:02 +00:00
Automatically fallback to 16 colors when t_Co < 256.
This commit is contained in:
@@ -4,10 +4,10 @@
|
||||
" Maintainer: Lifepillar <lifepillar@lifepillar.me>
|
||||
" Website: https://github.com/lifepillar/vim-solarized8
|
||||
" License: OSI approved MIT license
|
||||
" Last Updated: Mon 07 May 2018 12:48:23 PM CEST
|
||||
" Last Updated: Wed Jun 20 09:03:07 2018
|
||||
|
||||
if !(has('termguicolors') && &termguicolors) && !has('gui_running')
|
||||
\ && (!exists('&t_Co') || &t_Co < (get(g:, 'solarized_use16', 0) ? 16 : 256))
|
||||
\ && (!exists('&t_Co') || &t_Co < (get(g:, 'solarized_use16', &t_Co < 256) ? 16 : 256))
|
||||
echoerr '[Solarized 8] There are not enough colors.'
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
" Maintainer: Lifepillar <lifepillar@lifepillar.me>
|
||||
" Website: https://github.com/lifepillar/vim-solarized8
|
||||
" License: OSI approved MIT license
|
||||
" Last Updated: Mon 07 May 2018 12:48:27 PM CEST
|
||||
" Last Updated: Wed Jun 20 09:03:11 2018
|
||||
|
||||
if !(has('termguicolors') && &termguicolors) && !has('gui_running')
|
||||
\ && (!exists('&t_Co') || &t_Co < (get(g:, 'solarized_use16', 0) ? 16 : 256))
|
||||
\ && (!exists('&t_Co') || &t_Co < (get(g:, 'solarized_use16', &t_Co < 256) ? 16 : 256))
|
||||
echoerr '[Solarized 8 Flat] There are not enough colors.'
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
" Maintainer: Lifepillar <lifepillar@lifepillar.me>
|
||||
" Website: https://github.com/lifepillar/vim-solarized8
|
||||
" License: OSI approved MIT license
|
||||
" Last Updated: Mon 07 May 2018 12:48:30 PM CEST
|
||||
" Last Updated: Wed Jun 20 09:03:14 2018
|
||||
|
||||
if !(has('termguicolors') && &termguicolors) && !has('gui_running')
|
||||
\ && (!exists('&t_Co') || &t_Co < (get(g:, 'solarized_use16', 0) ? 16 : 256))
|
||||
\ && (!exists('&t_Co') || &t_Co < (get(g:, 'solarized_use16', &t_Co < 256) ? 16 : 256))
|
||||
echoerr '[Solarized 8 High Contrast] There are not enough colors.'
|
||||
finish
|
||||
endif
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
" Maintainer: Lifepillar <lifepillar@lifepillar.me>
|
||||
" Website: https://github.com/lifepillar/vim-solarized8
|
||||
" License: OSI approved MIT license
|
||||
" Last Updated: Mon 07 May 2018 12:48:34 PM CEST
|
||||
" Last Updated: Wed Jun 20 09:03:17 2018
|
||||
|
||||
if !(has('termguicolors') && &termguicolors) && !has('gui_running')
|
||||
\ && (!exists('&t_Co') || &t_Co < (get(g:, 'solarized_use16', 0) ? 16 : 256))
|
||||
\ && (!exists('&t_Co') || &t_Co < (get(g:, 'solarized_use16', &t_Co < 256) ? 16 : 256))
|
||||
echoerr '[Solarized 8 Low Contrast] There are not enough colors.'
|
||||
finish
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user