Document g:solarized_enable_extra_hi_groups.

This commit is contained in:
Lifepillar
2017-11-11 14:17:01 +01:00
parent 43dad0493d
commit 4cd2050d71
8 changed files with 46 additions and 23 deletions

View File

@@ -91,6 +91,11 @@ The following options were not available in the original Solarized:
Solarized's cursor style (default: `0`). By default, the cursor is orange/red
in light themes, and blue in dark themes (but please note that your terminal
may override the cursor's color).
- `g:solarized_enable_extra_hi_groups`: set to `1` to enable Solarized
filetype-specific syntax highlighting groups (default is `0`). Please be aware
that there is [a long standing
issue](https://github.com/altercation/solarized/issues/102) with extra
highlight groups.
- `g:solarized_use16`: see above.
All these options may be used with any Solarized 8 variant.

View File

@@ -4,7 +4,7 @@
" Maintainer: Lifepillar <lifepillar@lifepillar.me>
" Website: https://github.com/lifepillar/vim-solarized8
" License: OSI approved MIT license
" Last Updated: Sat Nov 11 14:00:16 2017
" Last Updated: Sat Nov 11 14:16:08 2017
if !(has('termguicolors') && &termguicolors) && !has('gui_running')
\ && (!exists('&t_Co') || &t_Co < (get(g:, 'solarized_use16', 0) ? 16 : 256))
@@ -175,7 +175,7 @@ if !get(g:, 'solarized_use16', 0)
hi ReplaceMode ctermfg=166 ctermbg=230 guifg=#cb4b16 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
hi VisualMode ctermfg=162 ctermbg=230 guifg=#d33682 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
hi CommandMode ctermfg=162 ctermbg=230 guifg=#d33682 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
if get(g:, 'solarized_enable_extra_hi_groups', 1)
if get(g:, 'solarized_enable_extra_hi_groups', 0)
hi! link vimVar Identifier
hi! link vimFunc Function
hi! link vimUserFunc Function
@@ -550,7 +550,7 @@ if !get(g:, 'solarized_use16', 0)
hi ReplaceMode ctermfg=166 ctermbg=230 guifg=#cb4b16 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
hi VisualMode ctermfg=162 ctermbg=230 guifg=#d33682 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
hi CommandMode ctermfg=162 ctermbg=230 guifg=#d33682 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
if get(g:, 'solarized_enable_extra_hi_groups', 1)
if get(g:, 'solarized_enable_extra_hi_groups', 0)
hi! link vimVar Identifier
hi! link vimFunc Function
hi! link vimUserFunc Function
@@ -897,7 +897,7 @@ if &background ==# 'dark'
hi ReplaceMode ctermfg=9 ctermbg=15 guifg=#cb4b16 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
hi VisualMode ctermfg=5 ctermbg=15 guifg=#d33682 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
hi CommandMode ctermfg=5 ctermbg=15 guifg=#d33682 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
if get(g:, 'solarized_enable_extra_hi_groups', 1)
if get(g:, 'solarized_enable_extra_hi_groups', 0)
hi! link vimVar Identifier
hi! link vimFunc Function
hi! link vimUserFunc Function
@@ -1254,7 +1254,7 @@ hi InsertMode ctermfg=6 ctermbg=15 guifg=#2aa198 guibg=#fdf6e3 guisp=NONE cterm=
hi ReplaceMode ctermfg=9 ctermbg=15 guifg=#cb4b16 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
hi VisualMode ctermfg=5 ctermbg=15 guifg=#d33682 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
hi CommandMode ctermfg=5 ctermbg=15 guifg=#d33682 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
if get(g:, 'solarized_enable_extra_hi_groups', 1)
if get(g:, 'solarized_enable_extra_hi_groups', 0)
hi! link vimVar Identifier
hi! link vimFunc Function
hi! link vimUserFunc Function

View File

@@ -4,7 +4,7 @@
" Maintainer: Lifepillar <lifepillar@lifepillar.me>
" Website: https://github.com/lifepillar/vim-solarized8
" License: OSI approved MIT license
" Last Updated: Sat Nov 11 14:00:19 2017
" Last Updated: Sat Nov 11 14:16:11 2017
if !(has('termguicolors') && &termguicolors) && !has('gui_running')
\ && (!exists('&t_Co') || &t_Co < (get(g:, 'solarized_use16', 0) ? 16 : 256))
@@ -169,7 +169,7 @@ if !get(g:, 'solarized_use16', 0)
hi Underlined ctermfg=61 ctermbg=NONE guifg=#6c71c4 guibg=NONE guisp=NONE cterm=NONE gui=NONE
hi! link lCursor Cursor
hi CursorIM ctermfg=NONE ctermbg=fg guifg=NONE guibg=fg guisp=NONE cterm=NONE gui=NONE
if get(g:, 'solarized_enable_extra_hi_groups', 1)
if get(g:, 'solarized_enable_extra_hi_groups', 0)
hi! link vimVar Identifier
hi! link vimFunc Function
hi! link vimUserFunc Function
@@ -538,7 +538,7 @@ if !get(g:, 'solarized_use16', 0)
hi Underlined ctermfg=61 ctermbg=NONE guifg=#6c71c4 guibg=NONE guisp=NONE cterm=NONE gui=NONE
hi! link lCursor Cursor
hi CursorIM ctermfg=NONE ctermbg=fg guifg=NONE guibg=fg guisp=NONE cterm=NONE gui=NONE
if get(g:, 'solarized_enable_extra_hi_groups', 1)
if get(g:, 'solarized_enable_extra_hi_groups', 0)
hi! link vimVar Identifier
hi! link vimFunc Function
hi! link vimUserFunc Function
@@ -879,7 +879,7 @@ if &background ==# 'dark'
hi Underlined ctermfg=13 ctermbg=NONE guifg=#6c71c4 guibg=NONE guisp=NONE cterm=NONE gui=NONE
hi! link lCursor Cursor
hi CursorIM ctermfg=NONE ctermbg=fg guifg=NONE guibg=fg guisp=NONE cterm=NONE gui=NONE
if get(g:, 'solarized_enable_extra_hi_groups', 1)
if get(g:, 'solarized_enable_extra_hi_groups', 0)
hi! link vimVar Identifier
hi! link vimFunc Function
hi! link vimUserFunc Function
@@ -1230,7 +1230,7 @@ hi! link Typedef Type
hi Underlined ctermfg=13 ctermbg=NONE guifg=#6c71c4 guibg=NONE guisp=NONE cterm=NONE gui=NONE
hi! link lCursor Cursor
hi CursorIM ctermfg=NONE ctermbg=fg guifg=NONE guibg=fg guisp=NONE cterm=NONE gui=NONE
if get(g:, 'solarized_enable_extra_hi_groups', 1)
if get(g:, 'solarized_enable_extra_hi_groups', 0)
hi! link vimVar Identifier
hi! link vimFunc Function
hi! link vimUserFunc Function

View File

@@ -4,7 +4,7 @@
" Maintainer: Lifepillar <lifepillar@lifepillar.me>
" Website: https://github.com/lifepillar/vim-solarized8
" License: OSI approved MIT license
" Last Updated: Sat Nov 11 14:00:22 2017
" Last Updated: Sat Nov 11 14:16:15 2017
if !(has('termguicolors') && &termguicolors) && !has('gui_running')
\ && (!exists('&t_Co') || &t_Co < (get(g:, 'solarized_use16', 0) ? 16 : 256))
@@ -175,7 +175,7 @@ if !get(g:, 'solarized_use16', 0)
hi ReplaceMode ctermfg=166 ctermbg=230 guifg=#cb4b16 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
hi VisualMode ctermfg=162 ctermbg=230 guifg=#d33682 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
hi CommandMode ctermfg=162 ctermbg=230 guifg=#d33682 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
if get(g:, 'solarized_enable_extra_hi_groups', 1)
if get(g:, 'solarized_enable_extra_hi_groups', 0)
hi! link vimVar Identifier
hi! link vimFunc Function
hi! link vimUserFunc Function
@@ -550,7 +550,7 @@ if !get(g:, 'solarized_use16', 0)
hi ReplaceMode ctermfg=166 ctermbg=230 guifg=#cb4b16 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
hi VisualMode ctermfg=162 ctermbg=230 guifg=#d33682 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
hi CommandMode ctermfg=162 ctermbg=230 guifg=#d33682 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
if get(g:, 'solarized_enable_extra_hi_groups', 1)
if get(g:, 'solarized_enable_extra_hi_groups', 0)
hi! link vimVar Identifier
hi! link vimFunc Function
hi! link vimUserFunc Function
@@ -897,7 +897,7 @@ if &background ==# 'dark'
hi ReplaceMode ctermfg=9 ctermbg=15 guifg=#cb4b16 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
hi VisualMode ctermfg=5 ctermbg=15 guifg=#d33682 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
hi CommandMode ctermfg=5 ctermbg=15 guifg=#d33682 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
if get(g:, 'solarized_enable_extra_hi_groups', 1)
if get(g:, 'solarized_enable_extra_hi_groups', 0)
hi! link vimVar Identifier
hi! link vimFunc Function
hi! link vimUserFunc Function
@@ -1254,7 +1254,7 @@ hi InsertMode ctermfg=6 ctermbg=15 guifg=#2aa198 guibg=#fdf6e3 guisp=NONE cterm=
hi ReplaceMode ctermfg=9 ctermbg=15 guifg=#cb4b16 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
hi VisualMode ctermfg=5 ctermbg=15 guifg=#d33682 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
hi CommandMode ctermfg=5 ctermbg=15 guifg=#d33682 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
if get(g:, 'solarized_enable_extra_hi_groups', 1)
if get(g:, 'solarized_enable_extra_hi_groups', 0)
hi! link vimVar Identifier
hi! link vimFunc Function
hi! link vimUserFunc Function

View File

@@ -4,7 +4,7 @@
" Maintainer: Lifepillar <lifepillar@lifepillar.me>
" Website: https://github.com/lifepillar/vim-solarized8
" License: OSI approved MIT license
" Last Updated: Sat Nov 11 14:00:26 2017
" Last Updated: Sat Nov 11 14:16:18 2017
if !(has('termguicolors') && &termguicolors) && !has('gui_running')
\ && (!exists('&t_Co') || &t_Co < (get(g:, 'solarized_use16', 0) ? 16 : 256))
@@ -175,7 +175,7 @@ if !get(g:, 'solarized_use16', 0)
hi ReplaceMode ctermfg=166 ctermbg=230 guifg=#cb4b16 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
hi VisualMode ctermfg=162 ctermbg=230 guifg=#d33682 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
hi CommandMode ctermfg=162 ctermbg=230 guifg=#d33682 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
if get(g:, 'solarized_enable_extra_hi_groups', 1)
if get(g:, 'solarized_enable_extra_hi_groups', 0)
hi! link vimVar Identifier
hi! link vimFunc Function
hi! link vimUserFunc Function
@@ -550,7 +550,7 @@ if !get(g:, 'solarized_use16', 0)
hi ReplaceMode ctermfg=166 ctermbg=230 guifg=#cb4b16 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
hi VisualMode ctermfg=162 ctermbg=230 guifg=#d33682 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
hi CommandMode ctermfg=162 ctermbg=230 guifg=#d33682 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
if get(g:, 'solarized_enable_extra_hi_groups', 1)
if get(g:, 'solarized_enable_extra_hi_groups', 0)
hi! link vimVar Identifier
hi! link vimFunc Function
hi! link vimUserFunc Function
@@ -897,7 +897,7 @@ if &background ==# 'dark'
hi ReplaceMode ctermfg=9 ctermbg=15 guifg=#cb4b16 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
hi VisualMode ctermfg=5 ctermbg=15 guifg=#d33682 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
hi CommandMode ctermfg=5 ctermbg=15 guifg=#d33682 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
if get(g:, 'solarized_enable_extra_hi_groups', 1)
if get(g:, 'solarized_enable_extra_hi_groups', 0)
hi! link vimVar Identifier
hi! link vimFunc Function
hi! link vimUserFunc Function
@@ -1254,7 +1254,7 @@ hi InsertMode ctermfg=6 ctermbg=15 guifg=#2aa198 guibg=#fdf6e3 guisp=NONE cterm=
hi ReplaceMode ctermfg=9 ctermbg=15 guifg=#cb4b16 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
hi VisualMode ctermfg=5 ctermbg=15 guifg=#d33682 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
hi CommandMode ctermfg=5 ctermbg=15 guifg=#d33682 guibg=#fdf6e3 guisp=NONE cterm=NONE,reverse gui=NONE,reverse
if get(g:, 'solarized_enable_extra_hi_groups', 1)
if get(g:, 'solarized_enable_extra_hi_groups', 0)
hi! link vimVar Identifier
hi! link vimFunc Function
hi! link vimUserFunc Function

View File

@@ -28,7 +28,16 @@ Tweak the way diffs are displayed. Allowed values are `"normal"` (default),
`"high"`, and `"low"`.
>
let g:solarized_diffmode = "normal"
< *g:solarized_old_cursor_style*
<
*g:solarized_enable_extra_hi_groups*
Set to 1 to enable filetype-specific syntax highlight group.
>
let g:solarized_enable_extra_hi_groups = 0
<
NOTE: setting this to 1 may leave "a wake of destruction when switching away"
(T. Pope), that is, when you switch to a different colorscheme the
highlighting may look wrong or disabled.
*g:solarized_old_cursor_style*
Set to 1 if you want to use the original Solarized's cursor style. By default,
the cursor is blue. NOTE: your terminal may override the cursor's color.
>

View File

@@ -1,7 +1,7 @@
# vim: ft=colortemplate fdm=marker
# Filetype specific highlight groups {{{
verbatim
if get(g:, '@optionprefix_enable_extra_hi_groups', 1)
if get(g:, '@optionprefix_enable_extra_hi_groups', 0)
endverbatim
# vim {{{
vimVar -> Identifier

View File

@@ -31,7 +31,16 @@ Tweak the way diffs are displayed. Allowed values are `"normal"` (default),
`"high"`, and `"low"`.
>
let g:@optionprefix_diffmode = "normal"
< *g:@optionprefix_old_cursor_style*
<
*g:@optionprefix_enable_extra_hi_groups*
Set to 1 to enable filetype-specific syntax highlight group.
>
let g:@optionprefix_enable_extra_hi_groups = 0
<
NOTE: setting this to 1 may leave "a wake of destruction when switching away"
(T. Pope), that is, when you switch to a different colorscheme the
highlighting may look wrong or disabled.
*g:@optionprefix_old_cursor_style*
Set to 1 if you want to use the original Solarized's cursor style. By default,
the cursor is blue. NOTE: your terminal may override the cursor's color.
>