diff options
Diffstat (limited to 'rplugin/python3/deoplete')
-rw-r--r-- | rplugin/python3/deoplete/deoplete.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/rplugin/python3/deoplete/deoplete.py b/rplugin/python3/deoplete/deoplete.py index fa1b0bb..bdedf9e 100644 --- a/rplugin/python3/deoplete/deoplete.py +++ b/rplugin/python3/deoplete/deoplete.py @@ -59,10 +59,16 @@ class Deoplete(logger.LoggingMixin): logger.setup(self._vim, logging['level'], logging['logfile']) self.is_debug_enabled = True - def completion_begin(self, context): + def completion_begin(self, user_context): + context = self._vim.call('deoplete#init#_context', '', []) + context.update(user_context) + self.debug('completion_begin (%s): %r', context['event'], context['input']) + if self._vim.call('deoplete#handler#_check_omnifunc', context): + return + self._check_recache(context) try: |