Add ability to manually trigger completion menu#2177
Add ability to manually trigger completion menu#2177w0rp merged 5 commits intodense-analysis:masterdense-analysis/ale:masterfrom jeremija:jeremija/manual-autocompletejeremija/ale:jeremija/manual-autocompleteCopy head branch name to clipboard
Conversation
w0rp
left a comment
There was a problem hiding this comment.
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#GetCompletionswas extracted into a new function:ale#completion#AlwaysGetCompletions. A new:ALECompletecommand was added, along with a plug mapping:<Plug>(ale_complete). Auto-completion can be triggered manually whether or notg:ale_completion_enabledis set.Sample bindings: