Smart completion after "from foo": add "import" and complete

This adds a new setting `jedi#smart_auto_mappings` (default 1).
This commit is contained in:
Ali Aliyev
2015-08-17 08:09:39 +05:00
committed by Daniel Hahler
parent d3484afe20
commit ac1615c647
3 changed files with 29 additions and 1 deletions

View File

@@ -37,6 +37,10 @@ if g:jedi#auto_initialization
inoremap <silent> <buffer> . .<C-R>=jedi#complete_string(1)<CR>
endif
if g:jedi#smart_auto_mappings == 1
inoremap <buffer> <expr> <Space> jedi#smart_auto_mappings(g:jedi#popup_on_dot)
end
if g:jedi#auto_close_doc
" close preview if its still open after insert
autocmd InsertLeave <buffer> if pumvisible() == 0|pclose|endif