mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-07 04:34:26 +08:00
make it possible to declare sections in the vimrc (#204).
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
call airline#init#bootstrap()
|
||||
call airline#init#sections()
|
||||
|
||||
function! MyFuncref(...)
|
||||
call a:1.add_raw('hello world')
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
call airline#init#bootstrap()
|
||||
call airline#init#sections()
|
||||
|
||||
source plugin/airline.vim
|
||||
|
||||
describe 'commands'
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
call airline#init#bootstrap()
|
||||
call airline#init#sections()
|
||||
|
||||
describe 'default'
|
||||
before
|
||||
|
||||
@@ -10,6 +10,7 @@ describe 'init'
|
||||
before
|
||||
call s:clear()
|
||||
call airline#init#bootstrap()
|
||||
call airline#init#sections()
|
||||
end
|
||||
|
||||
after
|
||||
|
||||
@@ -33,5 +33,10 @@ describe 'section'
|
||||
let s = airline#section#create(['hi'])
|
||||
Expect s == '%#hlgroup#hello'
|
||||
end
|
||||
|
||||
it 'should parse out a section from the vimrc'
|
||||
let s = airline#section#create(['whitespace'])
|
||||
Expect s =~ 'airline#extensions#whitespace#check'
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user