Using vim-endwise with ALE is triggering linting prematurely #4963
Unanswered
mperry2
asked this question in
Q&A - Ask for help with problems
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using ALE with another plugin named vim-endwise and having a small issue.
The endwise plugin will add a closing statement to a conditional when I press enter after the opening one. For example, in a shell script I can type
for i in 1 2 3; dothen press enter, and endwise will insert a line that saysdoneand put my cursor on a line between thedoanddonelines and leave me in insert mode.The problem I'm having is that when I press enter after
doand endwise does its work, ALE shows linting errors from shellcheck because there's nothing in the conditional block yet.I'd like for ALE to only perform the linting once I leave insert mode. I suspect that endwise is leaving insert mode at some point when its making its changes and that's triggering ALE to run the linter.
Is anyone else here using endwise with ALE and have a workaround for this? I don't know enough about vimscript to figure out what endwise is doing, and I'm not sure if there's something that can be done with ALE to have it disable linting while endwise performs its work.
Beta Was this translation helpful? Give feedback.
All reactions