mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 10:54:22 +08:00
completions instead of complete
This commit is contained in:
@@ -52,7 +52,7 @@ if g:jedi#auto_initialization
|
||||
" this is only here because in some cases the VIM library adds their
|
||||
" autocompletion as a default, which may cause problems, depending on the
|
||||
" order of invocation.
|
||||
autocmd FileType Python setlocal omnifunc=jedi#complete switchbuf=useopen " needed for pydoc
|
||||
autocmd FileType Python setlocal omnifunc=jedi#completions switchbuf=useopen " needed for pydoc
|
||||
endif
|
||||
|
||||
fun! Pyimport(cmd, args)
|
||||
|
||||
@@ -50,7 +50,7 @@ def get_script(source=None, column=None):
|
||||
return jedi.Script(source, row, column, buf_path, encoding)
|
||||
|
||||
|
||||
def complete():
|
||||
def completions():
|
||||
row, column = vim.current.window.cursor
|
||||
clear_func_def()
|
||||
if vim.eval('a:findstart') == '1':
|
||||
|
||||
Reference in New Issue
Block a user