forked from VimPlug/jedi-vim
updated complete interface
This commit is contained in:
8
jedi.vim
8
jedi.vim
@@ -48,14 +48,14 @@ if 1:
|
|||||||
completions = functions.complete(source, row, column, buf_path)
|
completions = functions.complete(source, row, column, buf_path)
|
||||||
out = []
|
out = []
|
||||||
for c in completions:
|
for c in completions:
|
||||||
d = dict(word=str(c),
|
d = dict(word=base + c.complete,
|
||||||
abbr=str(c),
|
abbr=c.word,
|
||||||
# stuff directly behind the completion
|
# stuff directly behind the completion
|
||||||
menu=PythonToVimStr(c.description),
|
menu=PythonToVimStr(c.description),
|
||||||
info=PythonToVimStr(c.help), # docstr
|
info=PythonToVimStr(c.doc), # docstr
|
||||||
kind=c.get_vim_type(), # completion type
|
kind=c.get_vim_type(), # completion type
|
||||||
icase=1, # case insensitive
|
icase=1, # case insensitive
|
||||||
dup=1, # allow duplicates (maybe later remove this)
|
dup=1 # allow duplicates (maybe later remove this)
|
||||||
)
|
)
|
||||||
out.append(d)
|
out.append(d)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user