diff --git a/autoload/jedi.vim b/autoload/jedi.vim index d923de8..c17e496 100644 --- a/autoload/jedi.vim +++ b/autoload/jedi.vim @@ -26,8 +26,8 @@ function! jedi#completions(findstart, base) endfunction -function! jedi#show_func_def() - Python jedi_vim.show_func_def() +function! jedi#show_call_signatures() + Python jedi_vim.show_call_signatures() endfunction function! jedi#enable_speed_debugging() @@ -158,9 +158,9 @@ function! jedi#do_popup_on_dot() return 1 endfunc -function! jedi#configure_function_definition() - autocmd InsertLeave Python jedi_vim.clear_func_def() - autocmd CursorMovedI call jedi#show_func_def() +function! jedi#configure_call_signature() + autocmd InsertLeave Python jedi_vim.clear_call_signatures() + autocmd CursorMovedI call jedi#show_call_signatures() endfunction if has('python') diff --git a/ftplugin/python/jedi.vim b/ftplugin/python/jedi.vim index 14addfd..7dd65ff 100644 --- a/ftplugin/python/jedi.vim +++ b/ftplugin/python/jedi.vim @@ -31,7 +31,7 @@ if g:jedi#auto_initialization execute "nnoremap ".g:jedi#pydoc." :call jedi#show_pydoc()" if g:jedi#show_function_definition == 1 && has('conceal') - call jedi#configure_function_definition() + call jedi#configure_call_signature() endif end diff --git a/plugin/jedi_vim.py b/plugin/jedi_vim.py index 7706397..6784dda 100644 --- a/plugin/jedi_vim.py +++ b/plugin/jedi_vim.py @@ -52,7 +52,7 @@ def get_script(source=None, column=None): def completions(): row, column = vim.current.window.cursor - clear_func_def() + clear_call_signatures() if vim.eval('a:findstart') == '1': count = 0 for char in reversed(vim.current.line[:column]): @@ -99,7 +99,7 @@ def completions(): call_def = None #print 'end', strout - show_func_def(call_def, len(completions)) + show_call_signatures(call_def, len(completions)) vim.command('return ' + strout) @@ -183,7 +183,7 @@ def show_pydoc(): vim.command('let l:doc_lines = %s' % len(text.split('\n'))) -def clear_func_def(): +def clear_call_signatures(): cursor = vim.current.window.cursor e = vim.eval('g:jedi#function_definition_escape') regex = r'%sjedi=([0-9]+), ([^%s]*)%s.*%sjedi%s'.replace('%s', e) @@ -199,14 +199,14 @@ def clear_func_def(): vim.current.window.cursor = cursor -def show_func_def(call_def=None, completion_lines=0): +def show_call_signatures(call_def=None, completion_lines=0): if vim.eval("has('conceal') && g:jedi#show_function_definition") == '0': return try: if call_def == None: sig = get_script().call_signatures() call_def = sig[0] if sig else None - clear_func_def() + clear_call_signatures() if call_def is None: return