forked from VimPlug/jedi-vim
Moves completion settings to the after directory
This commit is contained in:
@@ -1,3 +1,16 @@
|
|||||||
" We need our own omnifunc, so this overrides the omnifunc set by
|
if g:jedi#auto_initialization
|
||||||
" $VIMRUNTIME/ftplugin/python.vim.
|
if g:jedi#completions_enabled
|
||||||
setlocal omnifunc=jedi#completions
|
" We need our own omnifunc, so this overrides the omnifunc set by
|
||||||
|
" $VIMRUNTIME/ftplugin/python.vim.
|
||||||
|
setlocal omnifunc=jedi#completions
|
||||||
|
|
||||||
|
" map ctrl+space for autocompletion
|
||||||
|
if g:jedi#completions_command == "<C-Space>"
|
||||||
|
" in terminals, <C-Space> sometimes equals <Nul>
|
||||||
|
inoremap <expr> <Nul> jedi#complete_string(0)
|
||||||
|
endif
|
||||||
|
if g:jedi#completions_command != ""
|
||||||
|
execute "inoremap <expr> <buffer> ".g:jedi#completions_command." jedi#complete_string(0)"
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|||||||
@@ -6,17 +6,6 @@ endif
|
|||||||
" ------------------------------------------------------------------------
|
" ------------------------------------------------------------------------
|
||||||
|
|
||||||
if g:jedi#auto_initialization
|
if g:jedi#auto_initialization
|
||||||
if g:jedi#completions_enabled
|
|
||||||
" map ctrl+space for autocompletion
|
|
||||||
if g:jedi#completions_command == "<C-Space>"
|
|
||||||
" in terminals, <C-Space> sometimes equals <Nul>
|
|
||||||
inoremap <expr> <Nul> jedi#complete_string(0)
|
|
||||||
endif
|
|
||||||
if g:jedi#completions_command != ""
|
|
||||||
execute "inoremap <expr> <buffer> ".g:jedi#completions_command." jedi#complete_string(0)"
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
" goto / get_definition / usages
|
" goto / get_definition / usages
|
||||||
if g:jedi#goto_assignments_command != ''
|
if g:jedi#goto_assignments_command != ''
|
||||||
execute "noremap <buffer>".g:jedi#goto_assignments_command." :call jedi#goto_assignments()<CR>"
|
execute "noremap <buffer>".g:jedi#goto_assignments_command." :call jedi#goto_assignments()<CR>"
|
||||||
|
|||||||
Reference in New Issue
Block a user