make it possible to declare sections in the vimrc (#204).

This commit is contained in:
Bailey Ling
2013-08-31 17:42:09 -04:00
parent 3b2b224a3b
commit 1b91c71fc9
9 changed files with 19 additions and 11 deletions

View File

@@ -1,4 +1,5 @@
call airline#init#bootstrap()
call airline#init#sections()
function! MyFuncref(...)
call a:1.add_raw('hello world')

View File

@@ -1,4 +1,6 @@
call airline#init#bootstrap()
call airline#init#sections()
source plugin/airline.vim
describe 'commands'

View File

@@ -1,4 +1,5 @@
call airline#init#bootstrap()
call airline#init#sections()
describe 'default'
before

View File

@@ -10,6 +10,7 @@ describe 'init'
before
call s:clear()
call airline#init#bootstrap()
call airline#init#sections()
end
after

View File

@@ -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