mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 11:14:32 +08:00
use CursorMovedI to check for executions as discussed in #3
This commit is contained in:
@@ -61,7 +61,7 @@ endfunction
|
||||
" func_def
|
||||
" ------------------------------------------------------------------------
|
||||
function jedi#show_func_def()
|
||||
python << PYTHONEOF
|
||||
python << PYTHONEOF
|
||||
if 1:
|
||||
try:
|
||||
show_func_def(get_script().get_in_function_call())
|
||||
@@ -321,10 +321,5 @@ endfunc
|
||||
|
||||
function! jedi#configure_function_definition()
|
||||
autocmd InsertLeave <buffer> call jedi#clear_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>
|
||||
autocmd CursorMovedI <buffer> call jedi#show_func_def()
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user