-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add support for ALE, the Async Linting Engine #1286
Conversation
This looks okay to me. I'll leave this for airline contributors to look at. |
could someone test this please? |
This is currently waiting on dense-analysis/ale#97. As far as testing, it works on all my machines, but third-party tests would be great. |
Ale is a plugin that lints text in the background, as you type! It is new, but under [rapid development](https://github.com/w0rp/ale).
The blocker is now merged, so this is good to go again. |
thanks. included |
@chrisbra do you think you could give me some pointers on how to extend the ALE plugin to use the I want that feedback because linting (especially c++) can sometimes bring the system to its knees. Such an indicator would help for peace of mind... |
the airline plugin does not trigger the Ale linting, it only shows the result (e.g. is merely calls |
@chrisbra I am well aware of this. I'm referring to the autocommands run by ALE when linting proceeds. I just need documentation on basic airline section color updating, that's it... |
There is nothing like a specific highlighting parts of a section. However you could use User highlighting and add some parts to the statusline (including the User highlighting group). |
I am unable to find docs on what User highlighting means. I see that it is used by these autocommands. Thanks for the help. |
Is User just like any other highlight group, and just a standard Vim placeholder one for user to customize? That's fine. I'd like to just make the warn/error section to change color. |
You need to define any of the |
Thanks, that would have taken a loooong time for me to figure out on my own :) So this means i can then just update the content of the section and it will change color? |
Well, you either need to redefine the highlighting group or use a different one, depending on what you want. |
ah okay, that would need to be defined differently I think. It might be simpler to just redefine airline_warning and airline_highlighting group |
I don't know what highlighting group is, but I found |
the highlighting group is used by the ale extension. |
I am able to manipulate the color of the warning section by doing this:
but it reverts back instantly. How can I (semi-)permanently update the color of one of these sections? Alternatively, how can I add a wholly new section at the end which I want to make visible dynamically? The latter would probably be easier! |
Ale is a plugin that lints text in the background, as you type!
It is new, but under rapid development.