Closed mandeep closed 4 years ago
From the ALEInfo you posted I see that signs are disabled:
let g:ale_set_signs = 0
By default this value is set to has('signs')
so if you vim/nvim does not have this feature compiled in it won't work.
The neovim on Debian buster was last updated June 2019 so I don't think that is the cause. I think it's due to a change within ale, but I'll have to dig deeper to see which commit is the culprit.
If you use :echo has('signs')
can you make sure that it has a value of 1?
First check if your installation of vim/nvim supports signs by running this command:
:echo has('signs')
If it returns 0
then vim/nvim will not show any signs. Since the initial report indicates gitgutter sings do appear I assume signs are available and this value is 1
.
Second check your vimrc and make sure g:ale_set_signs
is not being set to 0
somewhere. Forcing it to 1
may be a good idea:
let g:ale_set_signs = 1
Third ensure gitgutter sign priority is not larger than ALE's. You can check all the signs by running this command in a buffer:
:sign place group=*
Adjust the priority using g:ale_sign_priority
configuration if required.
:echo has('signs')
does indeed return 1 and g_ale_set_signs
is only set once to 0 in my .vimrc
.
I don't have gitgutter installed so the sign place group command doesn't work. I have another machine that runs the same version of neovim but is on an older commit of ale (and doesn't have this problem). Tonight, I'll check to see which commit it is actually on and hopefully I can find a range of commits we can look at.
This disables signs:
g_ale_set_signs is only set once to 0
Either remove that configuration line or set it to 1.
I don't follow. g_ale_set_signs = 0
should disable signs, correct?
Apologies, I may have miss-understood the issue. I thought you were trying to enable the signs when in fact you seem to be trying to disable them. In that case yes, setting g:ale_set_signs to 0 should work. It does work for me in my setup so all I can recommend here is to make sure you have the latest version of ALE plugin installed.
The settings work just fine.
Thanks. I can confirm they work fine now after an update.
Debian 10.3, Neovim 0.3.4-3
I recently created a new Debian install and copied over the contents of my
vimrc
. It seems thatale_set_signs
andale_set_highlights
are no longer doing anything. I expect the gutter to be hidden when there are errors, however the gutter still shows with the>>
symbol.