forked from VimPlug/jedi-vim
use CursorMovedI to check for executions as discussed in #3
This commit is contained in:
@@ -61,7 +61,7 @@ endfunction
|
|||||||
" func_def
|
" func_def
|
||||||
" ------------------------------------------------------------------------
|
" ------------------------------------------------------------------------
|
||||||
function jedi#show_func_def()
|
function jedi#show_func_def()
|
||||||
python << PYTHONEOF
|
python << PYTHONEOF
|
||||||
if 1:
|
if 1:
|
||||||
try:
|
try:
|
||||||
show_func_def(get_script().get_in_function_call())
|
show_func_def(get_script().get_in_function_call())
|
||||||
@@ -321,10 +321,5 @@ endfunc
|
|||||||
|
|
||||||
function! jedi#configure_function_definition()
|
function! jedi#configure_function_definition()
|
||||||
autocmd InsertLeave <buffer> call jedi#clear_func_def()
|
autocmd InsertLeave <buffer> call jedi#clear_func_def()
|
||||||
|
autocmd CursorMovedI <buffer> call jedi#show_func_def()
|
||||||
" , and () mappings
|
|
||||||
inoremap <buffer> ( (<C-R>=jedi#show_func_def()<CR>
|
|
||||||
inoremap <buffer> ) )<C-R>=jedi#show_func_def()<CR>
|
|
||||||
inoremap <buffer> , ,<C-R>=jedi#show_func_def()<CR>
|
|
||||||
inoremap <buffer> <BS> <BS><C-R>=jedi#show_func_def()<CR>
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
2
jedi
2
jedi
Submodule jedi updated: ff84e4670b...1009a0b376
Reference in New Issue
Block a user