David Blume's GitList
Repositories
dotfiles.git
Code
Commits
Branches
Tags
Search
Tree:
2c4452d
Branches
Tags
main
pathogen
remove-vim-airline
vim-airline-disabled
vim-powerline
dotfiles.git
.vim
pack
plugins
start
vim-airline
t
extensions_default.vim
Remove pathgen and use native vim packages. https://micro.quietmisdreavus.net/code/2020/03/15/vim8-packages/
David Blume
commited
2c4452d
at 2021-03-11 19:45:57
extensions_default.vim
Blame
History
Raw
let g:airline#extensions#default#layout = [ \ [ 'c', 'a', 'b', 'warning' ], \ [ 'x', 'z', 'y' ] \ ] source plugin/airline.vim doautocmd VimEnter describe 'default' before let s:builder = airline#builder#new({'active': 1}) end it 'should use the layout' call airline#extensions#default#apply(s:builder, { 'winnr': 1, 'active': 1 }) let stl = s:builder.build() Expect stl =~ 'airline_c_to_airline_a' Expect stl =~ 'airline_a_to_airline_b' Expect stl =~ 'airline_b_to_airline_warning' Expect stl =~ 'airline_x_to_airline_z' Expect stl =~ 'airline_z_to_airline_y' end it 'should only render warning section in active splits' wincmd s Expect airline#statusline(1) =~ 'warning' Expect airline#statusline(2) !~ 'warning' wincmd c end end