We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 585cd35 commit d3f91c4Copy full SHA for d3f91c4
autoload/jedi.vim
@@ -594,7 +594,10 @@ function! jedi#smart_auto_mappings(...) abort
594
\ && mode() ==# 'i'
595
\ && s:import_timer[2][1:2] == [pos[1], pos[2]-1]
596
" Enter characters and start completion.
597
- call feedkeys("import \<C-x>\<C-o>\<C-r>=jedi#complete_opened(1)\<CR>", 'nt')
+ call feedkeys('import ', 'nt')
598
+ if g:jedi#completions_enabled
599
+ call feedkeys("\<C-x>\<C-o>\<C-r>=jedi#complete_opened(2)\<CR>", 'nt')
600
+ endif
601
endif
602
return
603
elseif search('\m^\s*from\s\+[A-Za-z0-9._]\{1,50}\%#\s*$', 'bcn', line('.'))
0 commit comments