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
Gitgutter is overwritten by ale #23
Comments
I've never used gitgutter myself. I wonder if this plugin can be made to be On Sun, 2 Oct 2016, 17:50 Shookit, notifications@github.com wrote:
|
Yeah, I wouldn't normally raise the issue, but it's a fairly popular plugin, so I figured it would be worth bringing up |
Nah, always raise issues. Otherwise nothing gets fixed. Thank you for On Sun, 2 Oct 2016, 17:54 Shookit, notifications@github.com wrote:
|
If I remember well, vim allows only one sign in the gutter, so its quite hard to make those kind of plugins work together. |
Similar issue with Syntastic and gitgutter: airblade/vim-gitgutter#1 The best compromise from the thread is to simply display both gitgutter and linter signs, while giving higher preference to linter signs. Main issue now is that ALE deletes the entire sign column every time https://github.com/w0rp/ale/blob/master/plugin/ale/sign.vim#L35 Instead, it should only find and delete its own signs, like gitgutter does, so that lines that aren't being used for lint errors can still display diff or other symbols |
For now, you can disable the ALE signs if you only want to see the |
I just added support for displaying both sets of signs at the same time now. Try it out. Let me know if I broke everything horribly, let me know what works, etc. Here is how I went about it.
One issue might be that the ALE signs might not take precedence properly. I'll let someone who uses ALE and gitgutter together check that. It's probably not that hard to fix if that's happening. |
I noticed that error signs stoped to dissapear: |
Just gave it a try, everything looks great on my end! |
@deathmaz Did I introduce a bug with it not clearing signs, perhaps? Try pulling the latest code and see if the signs are ever removed. I'll let the dust settle on this issue a little until everything seems to be working well. |
Everything works fine after update |
Is ale signs suppose to overwrite git signs? I am using https://github.com/mhinz/vim-signify, and also tried https://github.com/airblade/vim-gitgutter. |
ALE is supposed to avoid removing other signs if it can. I suppose it could display over top of other signs. If you have a specific issue, open a GitHub issue for it, and I or someone else can take a look. There are a few documented options for changing the IDs ALE uses for signs, in an attempt not to conflict with other plugins. ALE parses |
When using the gitgutter plugin, which adds git changed/added/removed annotations to the left gutter, ale seems to be in competition for the gutter space. I see gitgutter's annotations flash briefly, and are then overwritten when ale finishes processing with either nothing, or with whatever syntax issues ale found.
The text was updated successfully, but these errors were encountered: