summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2018-10-15 21:55:32 +0900
committerShougo Matsushita <Shougo.Matsu@gmail.com>2018-11-08 21:34:17 +0900
commit005a30c717144272610ec49098d8dc49896e98aa (patch)
tree15e96bd00c51e29816cffc05ea11201006f96e86
parent3accc4a59ed2ed06b9cb15fffe3a029dc6c40def (diff)
downloaddeoplete.nvim-005a30c717144272610ec49098d8dc49896e98aa.zip
Improve deoplete#init#_context()
-rw-r--r--autoload/deoplete/init.vim2
-rw-r--r--rplugin/python3/deoplete/deoplete.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/autoload/deoplete/init.vim b/autoload/deoplete/init.vim
index d859e55..05958e9 100644
--- a/autoload/deoplete/init.vim
+++ b/autoload/deoplete/init.vim
@@ -212,7 +212,7 @@ function! deoplete#init#_cached_context() abort
\ 'omni__omnifunc': &l:omnifunc,
\ }
endfunction
-function! deoplete#init#_context(event, sources) abort
+function! deoplete#init#_context(event) abort
let input = deoplete#util#get_input(a:event)
let [filetype, filetypes, same_filetypes] =
diff --git a/rplugin/python3/deoplete/deoplete.py b/rplugin/python3/deoplete/deoplete.py
index a912def..f0892bb 100644
--- a/rplugin/python3/deoplete/deoplete.py
+++ b/rplugin/python3/deoplete/deoplete.py
@@ -46,7 +46,7 @@ class Deoplete(logger.LoggingMixin):
self.enable_logging()
# Initialization
- context = self._vim.call('deoplete#init#_context', 'Init', [])
+ context = self._vim.call('deoplete#init#_context', 'Init')
context['rpc'] = 'deoplete_on_event'
self.on_event(context)
@@ -60,7 +60,7 @@ class Deoplete(logger.LoggingMixin):
self.is_debug_enabled = True
def completion_begin(self, user_context):
- context = self._vim.call('deoplete#init#_context', '', [])
+ context = self._vim.call('deoplete#init#_context', '')
context.update(user_context)
self.debug('completion_begin (%s): %r',
@@ -110,7 +110,7 @@ class Deoplete(logger.LoggingMixin):
self._vim.call('deoplete#handler#_do_complete')
def on_event(self, user_context):
- context = self._vim.call('deoplete#init#_context', '', [])
+ context = self._vim.call('deoplete#init#_context', '')
context.update(user_context)
self.debug('on_event: %s', context['event'])