-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 ability to manually trigger completion menu #2177
Add ability to manually trigger completion menu #2177
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good to me. 👍 Could you update the tests to include a test for the new command? Could you update the documentation for completion so it mentions the new command and mapping? You can link to the documentation for the command from the ale-completion
section.
Hi @w0rp, I updated the docs and added the test. In the test I noticed that I cannot override the Also, an unrelated appveyor test failed (it is also failing on the master branch):
|
If you rebase your code, that test on Windows will pass. You can replace the function in Vader tests. Look through existing tests for completion. You can define the function in |
I guess I'm confused why I get this error in Vim 8.1:
for this simple test case:
But the following works:
|
dbaec53
to
d6ef5cb
Compare
You'll need to add a |
Thanks, I think I've already tried that and it didn't work. Did you get a chance to take a look at the latest commit? I did something similar to what I wrote above and the test passes. |
Cheers! 🍻 |
Following the discussion in #1830, a part of
ale#completion#GetCompletions
was extracted into a new function:ale#completion#AlwaysGetCompletions
. A new:ALEComplete
command was added, along with a plug mapping:<Plug>(ale_complete)
. Auto-completion can be triggered manually whether or notg:ale_completion_enabled
is set.Sample bindings: