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 authored and Daniel Hahler committed 2015-08-17 23:36:48 +02:00
1 parent d3484afe20
commit ac1615c647
3 files changed
+29 -1

No files matched your search

+4
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