mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 19:24:36 +08:00
completions instead of complete
This commit is contained in:
@@ -21,8 +21,8 @@ function! jedi#rename(...)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
function! jedi#complete(findstart, base)
|
function! jedi#completions(findstart, base)
|
||||||
Python jedi_vim.complete()
|
Python jedi_vim.completions()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ endif
|
|||||||
" ------------------------------------------------------------------------
|
" ------------------------------------------------------------------------
|
||||||
|
|
||||||
if g:jedi#auto_initialization
|
if g:jedi#auto_initialization
|
||||||
setlocal omnifunc=jedi#complete
|
setlocal omnifunc=jedi#completions
|
||||||
|
|
||||||
" map ctrl+space for autocompletion
|
" map ctrl+space for autocompletion
|
||||||
if g:jedi#autocompletion_command == "<C-Space>"
|
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
|
" this is only here because in some cases the VIM library adds their
|
||||||
" autocompletion as a default, which may cause problems, depending on the
|
" autocompletion as a default, which may cause problems, depending on the
|
||||||
" order of invocation.
|
" 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
|
endif
|
||||||
|
|
||||||
fun! Pyimport(cmd, args)
|
fun! Pyimport(cmd, args)
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ def get_script(source=None, column=None):
|
|||||||
return jedi.Script(source, row, column, buf_path, encoding)
|
return jedi.Script(source, row, column, buf_path, encoding)
|
||||||
|
|
||||||
|
|
||||||
def complete():
|
def completions():
|
||||||
row, column = vim.current.window.cursor
|
row, column = vim.current.window.cursor
|
||||||
clear_func_def()
|
clear_func_def()
|
||||||
if vim.eval('a:findstart') == '1':
|
if vim.eval('a:findstart') == '1':
|
||||||
|
|||||||
Reference in New Issue
Block a user