diff options
author | w0rp <devw0rp@gmail.com> | 2020-09-08 21:40:10 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2020-09-08 21:40:10 +0100 |
commit | 7d90ff56d96d601478f00895e009ae63a7d8b4bb (patch) | |
tree | 8e20d801244d0571cc3680d2b6c42be3a342dadf /rplugin | |
parent | b4b75126f9eae30da8f5e0cb9ec100feb38c1cb6 (diff) | |
download | ale-7d90ff56d96d601478f00895e009ae63a7d8b4bb.zip |
Close #3333 - Add an ALECompletePost event
Add an `ALECompletePost` event along with everything needed to make it
useful for its primary purpose: fixing code after inserting completions.
* `ALEFix` can now be called with a bang (`!`) to suppress errors.
* A new `ALELintStop` command lets you stop linting, and start it later.
Diffstat (limited to 'rplugin')
-rw-r--r-- | rplugin/python3/deoplete/sources/ale.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rplugin/python3/deoplete/sources/ale.py b/rplugin/python3/deoplete/sources/ale.py index ae1f4039..82d9bbf2 100644 --- a/rplugin/python3/deoplete/sources/ale.py +++ b/rplugin/python3/deoplete/sources/ale.py @@ -49,12 +49,13 @@ class Source(Base): if event == 'Async': result = self.vim.call('ale#completion#GetCompletionResult') + return result or [] if context.get('is_refresh'): self.vim.command( - "call ale#completion#GetCompletions('ale-callback', " + \ - "{'callback': {completions -> deoplete#auto_complete() }})" + "call ale#completion#GetCompletions('ale-callback', " + + "{'callback': {completions -> deoplete#auto_complete() }})" ) return [] |