mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2026-10-23 14:27:14 +08:00
don't set switchbuf option until python filetype is loaded.
This commit is contained in:
1 parent
2143e2f0a3
commit
e6b22f8450
1 file changed
+2
-3
+2
-3
@@ -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