mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-01-30 14:45:21 +08:00
support for prefixing with a highlight group.
This commit is contained in:
@@ -8,6 +8,10 @@ describe 'section'
|
||||
call airline#parts#define_text('text', 'text')
|
||||
call airline#parts#define_raw('raw', 'raw')
|
||||
call airline#parts#define_function('func', 'SectionSpec')
|
||||
call airline#parts#define('hi', {
|
||||
\ 'raw': 'hello',
|
||||
\ 'highlight': 'hlgroup',
|
||||
\ })
|
||||
end
|
||||
|
||||
it 'should create sections with no separators'
|
||||
@@ -24,5 +28,10 @@ describe 'section'
|
||||
let s = airline#section#create_right(['text', 'text'])
|
||||
Expect s == '%{airline#util#prepend("text")}%{"text"}'
|
||||
end
|
||||
|
||||
it 'should prefix with highlight group if provided'
|
||||
let s = airline#section#create(['hi'])
|
||||
Expect s == '%#hlgroup#hello'
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user