gcavallanti / vim-noscrollbar

A scrollbar-like widget for the vim statusline
132 stars 4 forks source link

Integration with Airline / *line #1

Open supermarin opened 9 years ago

supermarin commented 9 years ago

It'd be great to have an out-of-the-box working solution for us n00bs :)

Otherwise - interesting project!

aVolpe commented 9 years ago

You can use:

function! Noscrollbar(...)
    let w:airline_section_z = '%{noscrollbar#statusline()}'
endfunction
call airline#add_statusline_func('Noscrollbar')

Credit to this

supermarin commented 9 years ago

@aVolpe thank you!

supermarin commented 9 years ago

Reopening the issue, might be worth adding a PR on Airline or some documentation in Readme

gcavallanti commented 9 years ago

Airline/lightline/powerline off-the-shelf support is something that they have to provide. Third party plugins can (and should) make that integration feasible and as easy as possible. I'll leave the issue open to track *line integration. It is definitely worthwhile to open issues at bling/vim-airline, etc. I would wait a few days, though, since I am planning to change the "API" a bit.