mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 03:04:30 +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
|
||||
|
||||
|
||||
set switchbuf=useopen " needed for pydoc
|
||||
|
||||
if g:jedi#auto_initialization
|
||||
" this is only here because in some cases the VIM library adds their
|
||||
" autocompletion as a default, which may cause problems, depending on the
|
||||
" order of invocation.
|
||||
autocmd FileType python setlocal omnifunc=jedi#complete
|
||||
autocmd FileType python setlocal omnifunc=jedi#complete switchbuf=useopen " needed for pydoc
|
||||
|
||||
endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user