mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 18:54:44 +08:00
completions instead of complete
This commit is contained in:
@@ -21,8 +21,8 @@ function! jedi#rename(...)
|
||||
endfunction
|
||||
|
||||
|
||||
function! jedi#complete(findstart, base)
|
||||
Python jedi_vim.complete()
|
||||
function! jedi#completions(findstart, base)
|
||||
Python jedi_vim.completions()
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ endif
|
||||
" ------------------------------------------------------------------------
|
||||
|
||||
if g:jedi#auto_initialization
|
||||
setlocal omnifunc=jedi#complete
|
||||
setlocal omnifunc=jedi#completions
|
||||
|
||||
" map ctrl+space for autocompletion
|
||||
if g:jedi#autocompletion_command == "<C-Space>"
|
||||
|
||||
2
jedi
2
jedi
Submodule jedi updated: 78f1ae5e71...80ec8da513
@@ -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