Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best way of integrating with airline? #51

Open
vsviridov opened this issue Oct 18, 2016 · 1 comment
Open

Best way of integrating with airline? #51

vsviridov opened this issue Oct 18, 2016 · 1 comment

Comments

@vsviridov
Copy link

What is the easiest way to display error/warning count in an airline segment?

@vsviridov
Copy link
Author

I've resorted to doing something like this

if (exists('g:loaded_airline') && g:loaded_airline && exists('g:loaded_validator_plugin') && g:loaded_validator_plugin)
    call airline#parts#define_function('validator', 'validator#get_status_string')
    let g:airline_section_error = airline#section#create(['validator'])
endif

It would be very helpful if you'd expose specific counts of errors/warnings per buffer and also provide a way to register a callback after validation was completed. Currently Airline doesn't refresh since it's not aware of async operation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant