mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 10:54:22 +08:00
don't set switchbuf option until python filetype is loaded.
This commit is contained in:
@@ -40,13 +40,12 @@ for [key, val] in items(s:settings)
|
|||||||
endfor
|
endfor
|
||||||
|
|
||||||
|
|
||||||
set switchbuf=useopen " needed for pydoc
|
|
||||||
|
|
||||||
if g:jedi#auto_initialization
|
if g:jedi#auto_initialization
|
||||||
" this is only here because in some cases the VIM library adds their
|
" this is only here because in some cases the VIM library adds their
|
||||||
" autocompletion as a default, which may cause problems, depending on the
|
" autocompletion as a default, which may cause problems, depending on the
|
||||||
" order of invocation.
|
" order of invocation.
|
||||||
autocmd FileType python setlocal omnifunc=jedi#complete
|
autocmd FileType python setlocal omnifunc=jedi#complete switchbuf=useopen " needed for pydoc
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user