mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-02-26 03:27:12 +08:00
use __accent to better differentiate between a real group.
This commit is contained in:
@@ -24,7 +24,7 @@ function! s:prototype.add_section(group, contents)
|
||||
endif
|
||||
|
||||
let contents = []
|
||||
let content_parts = split(a:contents, 'airline_accent')
|
||||
let content_parts = split(a:contents, '__accent')
|
||||
for cpart in content_parts
|
||||
let accent = matchstr(cpart, '_\zs[^#]*\ze')
|
||||
call airline#highlighter#add_accent(a:group, accent)
|
||||
|
||||
@@ -68,7 +68,7 @@ function! airline#init#bootstrap()
|
||||
\ 'accent': 'red',
|
||||
\ })
|
||||
call airline#parts#define_raw('file', '%f%m')
|
||||
call airline#parts#define_raw('linenr', (g:airline_symbols.linenr).' %#airline_accent_bold#%3l%#__restore__#')
|
||||
call airline#parts#define_raw('linenr', (g:airline_symbols.linenr).' %#__accent_bold#%3l%#__restore__#')
|
||||
call airline#parts#define_function('ffenc', 'airline#parts#ffenc')
|
||||
call airline#parts#define_empty(['hunks', 'branch', 'tagbar', 'syntastic', 'whitespace'])
|
||||
endfunction
|
||||
|
||||
@@ -11,7 +11,7 @@ function! s:create(parts, append)
|
||||
|
||||
let val = ''
|
||||
if exists('part.accent')
|
||||
let val .= '%#airline_accent_'.(part.accent).'#'
|
||||
let val .= '%#__accent_'.(part.accent).'#'
|
||||
endif
|
||||
|
||||
if exists('part.function')
|
||||
|
||||
Reference in New Issue
Block a user