Rename highlight groups: `plugin.` to `plugin:`

Ref #1216
This commit is contained in:
ZyX 2015-01-06 15:33:39 +03:00
parent c868f9c255
commit 9d90552091
4 changed files with 9 additions and 9 deletions

View File

@ -3,12 +3,12 @@
"left": [
{
"type": "string",
"highlight_groups": ["gundo.name", "file_name"],
"highlight_groups": ["gundo:name", "file_name"],
"contents": "Undo diff"
},
{
"type": "string",
"highlight_groups": ["gundo.background", "background"],
"highlight_groups": ["gundo:background", "background"],
"draw_soft_divider": false,
"draw_hard_divider": false,
"width": "auto"

View File

@ -3,12 +3,12 @@
"left": [
{
"type": "string",
"highlight_groups": ["gundo.name", "file_name"],
"highlight_groups": ["gundo:name", "file_name"],
"contents": "Undo tree"
},
{
"type": "string",
"highlight_groups": ["gundo.background", "background"],
"highlight_groups": ["gundo:background", "background"],
"draw_soft_divider": false,
"draw_hard_divider": false,
"width": "auto"

View File

@ -14,12 +14,12 @@ from powerline.segments.vim import window_cached
def nerdtree(pl):
'''Return directory that is shown by the current buffer.
Highlight groups used: ``nerdtree.path`` or ``file_name``.
Highlight groups used: ``nerdtree:path`` or ``file_name``.
'''
if not bufvar_exists(None, 'NERDTreeRoot'):
return None
path_str = vim.eval('getbufvar("%", "NERDTreeRoot").path.str()')
return [{
'contents': path_str,
'highlight_groups': ['nerdtree.path', 'file_name'],
'highlight_groups': ['nerdtree:path', 'file_name'],
}]

View File

@ -20,7 +20,7 @@ def syntastic(pl, err_format='ERR:  {first_line} ({num}) ', warn_format='WARN
:param str warn_format:
Format string for warnings.
Highlight groups used: ``syntastic.warning`` or ``warning``, ``syntastic.error`` or ``error``.
Highlight groups used: ``syntastic:warning`` or ``warning``, ``syntastic:error`` or ``error``.
'''
if not vim_global_exists('SyntasticLoclist'):
return None
@ -33,11 +33,11 @@ def syntastic(pl, err_format='ERR:  {first_line} ({num}) ', warn_format='WARN
if errors:
segments.append({
'contents': err_format.format(first_line=errors[0]['lnum'], num=len(errors)),
'highlight_groups': ['syntastic.error', 'error'],
'highlight_groups': ['syntastic:error', 'error'],
})
if warnings:
segments.append({
'contents': warn_format.format(first_line=warnings[0]['lnum'], num=len(warnings)),
'highlight_groups': ['syntastic.warning', 'warning'],
'highlight_groups': ['syntastic:warning', 'warning'],
})
return segments