mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 03:04:30 +08:00
Mapping: remap of <C-Space>: use <buffer> and map to <C-Space>
Mapping it to <C-Space> should be enough, and makes it unnecessary to map everything twice.
This commit is contained in:
@@ -10,8 +10,8 @@ if g:jedi#auto_initialization
|
|||||||
|
|
||||||
" map ctrl+space for autocompletion
|
" map ctrl+space for autocompletion
|
||||||
if g:jedi#completions_command == "<C-Space>"
|
if g:jedi#completions_command == "<C-Space>"
|
||||||
" in terminals, <C-Space> sometimes equals <Nul>
|
" In terminals, <C-Space> sometimes equals <Nul>.
|
||||||
inoremap <expr> <Nul> jedi#complete_string(0)
|
imap <buffer> <Nul> <C-Space>
|
||||||
endif
|
endif
|
||||||
if g:jedi#completions_command != ""
|
if g:jedi#completions_command != ""
|
||||||
execute "inoremap <expr> <buffer> ".g:jedi#completions_command." jedi#complete_string(0)"
|
execute "inoremap <expr> <buffer> ".g:jedi#completions_command." jedi#complete_string(0)"
|
||||||
|
|||||||
Reference in New Issue
Block a user