mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 19:24:36 +08:00
add autocompletion_command default -> fixes #51
This commit is contained in:
@@ -6,9 +6,14 @@ let b:did_ftplugin = 1
|
||||
|
||||
if g:jedi#auto_initialization
|
||||
setlocal omnifunc=jedi#complete
|
||||
|
||||
echom g:jedi#autocompletion_command
|
||||
" map ctrl+space for autocompletion
|
||||
inoremap <buffer> <Nul> <C-X><C-O>
|
||||
inoremap <buffer> <C-Space> <C-X><C-O>
|
||||
if g:jedi#autocompletion_command == "<C-Space>"
|
||||
" in terminals, <C-Space> sometimes equals <Nul>
|
||||
inoremap <buffer><Nul> <C-X><C-O>
|
||||
endif
|
||||
execute "inoremap <buffer>".g:jedi#autocompletion_command." <C-X><C-O>"
|
||||
|
||||
" goto / get_definition / related_names
|
||||
execute "noremap <buffer>".g:jedi#goto_command." :call jedi#goto()<CR>"
|
||||
|
||||
Reference in New Issue
Block a user