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>
|
" Maintainer: Lifepillar <lifepillar@lifepillar.me>
|
||||||
" Website: https://github.com/lifepillar/vim-solarized8
|
" Website: https://github.com/lifepillar/vim-solarized8
|
||||||
" License: OSI approved MIT license
|
" 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')
|
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.'
|
echoerr '[Solarized 8] There are not enough colors.'
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
" Maintainer: Lifepillar <lifepillar@lifepillar.me>
|
" Maintainer: Lifepillar <lifepillar@lifepillar.me>
|
||||||
" Website: https://github.com/lifepillar/vim-solarized8
|
" Website: https://github.com/lifepillar/vim-solarized8
|
||||||
" License: OSI approved MIT license
|
" 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')
|
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.'
|
echoerr '[Solarized 8 Flat] There are not enough colors.'
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
" Maintainer: Lifepillar <lifepillar@lifepillar.me>
|
" Maintainer: Lifepillar <lifepillar@lifepillar.me>
|
||||||
" Website: https://github.com/lifepillar/vim-solarized8
|
" Website: https://github.com/lifepillar/vim-solarized8
|
||||||
" License: OSI approved MIT license
|
" 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')
|
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.'
|
echoerr '[Solarized 8 High Contrast] There are not enough colors.'
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
" Maintainer: Lifepillar <lifepillar@lifepillar.me>
|
" Maintainer: Lifepillar <lifepillar@lifepillar.me>
|
||||||
" Website: https://github.com/lifepillar/vim-solarized8
|
" Website: https://github.com/lifepillar/vim-solarized8
|
||||||
" License: OSI approved MIT license
|
" 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')
|
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.'
|
echoerr '[Solarized 8 Low Contrast] There are not enough colors.'
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ Tweak the visibility of a few elements. Allowed values are `"normal"`
|
|||||||
Solarized 8 other options *solarized8-other-options*
|
Solarized 8 other options *solarized8-other-options*
|
||||||
|
|
||||||
*g:solarized_use16*
|
*g:solarized_use16*
|
||||||
Set to 1 if you want to use 16 colors.
|
Set to 1 if you want to force the use of 16 colors.
|
||||||
>
|
>
|
||||||
let g:solarized_use16 = 0
|
let g:solarized_use16 = 0
|
||||||
<
|
<
|
||||||
|
|||||||
Reference in New Issue
Block a user