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

569 support vim sign group and priority #2786

Merged

Conversation

hsanson
Copy link
Contributor

@hsanson hsanson commented Sep 23, 2019

Add sign-group and sign-priority support to ALE. With sign-group ALE can manipulate the signs without risk of conflicts with other plugins that also set signs and with priority users are able to adjust ALE signs priority to override or be overridden by other plugins signs.

Horacio Sanson added 3 commits September 23, 2019 10:42
The sign-group feature is only available for nvim 0.4.0 and vim 8.1
upwards.
This allows users to set a priority to ALE signs to take precedence over
other plugin signs.

Only works with nvim 0.4.0 and vim 8.1 upwards.
@hsanson hsanson requested a review from w0rp September 23, 2019 12:37
@hsanson
Copy link
Contributor Author

hsanson commented Sep 23, 2019

@w0rp this pull request seems to break the tests somehow and my understanding on how these run is not enough to find the issue.

If I run the tests (e.g. ./run-tests) with the master branch all works ok but when running the tests with the changes of this PR, the tests hang forever after completing the vader tests:

.....
  Success/Total: 2/2                                                                                                   
Success/Total: 2180/2180 (assertions: 3090/3090)                                                                       
Elapsed time: 57.295863 sec.   <--- hangs here forever --->

autoload/ale/sign.vim Show resolved Hide resolved
 1. The sign-group and sign-priority features are available only after
 vim patch 614.
 2. Update all sign tests to use group for supported nvim/vim versions.
 3. Use same ale#sign#ParsePattern() on tests.
 4. New ale#sign#Clear() method for use within tests.
@w0rp w0rp merged commit 41ff80d into dense-analysis:master Sep 25, 2019
@w0rp
Copy link
Member

w0rp commented Sep 25, 2019

Cheers! 🍻

timlag1305 pushed a commit to timlag1305/ale that referenced this pull request Nov 5, 2019
* Use sign-group only on supported vim versions.

The sign-group feature is only available in nvim 0.4.0 and vim 8.1.614.

* Add priority to ALE signs.

This allows users to set a priority to ALE signs to take precedence over
other plugin signs.
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

Successfully merging this pull request may close these issues.

None yet

2 participants