completions instead of complete

This commit is contained in:
David Halter
2013-08-20 15:01:09 +04:30
parent e01eadb9ed
commit 00814ef58d
5 changed files with 6 additions and 6 deletions

View File

@@ -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

View File

@@ -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

Submodule jedi updated: 78f1ae5e71...80ec8da513

View File

@@ -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)

View File

@@ -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':