" Synchronize jedi-vim with pyenv.
if jedi#init_python()
  function! s:jedi_auto_force_py_version() abort
    let major_version = pyenv#python#get_internal_major_version()
    call jedi#force_py_version(major_version)
  endfunction
  augroup vim-pyenv-jedi
    autocmd!
    autocmd User vim-pyenv-activate-post call s:jedi_auto_force_py_version()
    autocmd User vim-pyenv-deactivate-post call s:jedi_auto_force_py_version()
  augroup END
endif

" Synchronize jedi-vim with pyenv.
" TODO This does not actually work anymore.
if jedi#init_python()
  function! s:jedi_auto_force_py_version() abort
    let major_version = pyenv#python#get_internal_major_version()
    call jedi#force_py_version(major_version)
  endfunction
  augroup vim-pyenv-jedi
    autocmd!
    autocmd User vim-pyenv-activate-post call s:jedi_auto_force_py_version()
    autocmd User vim-pyenv-deactivate-post call s:jedi_auto_force_py_version()
  augroup END
endif

Add TODO since pyenv does not sync jedi version
Add TODO since pyenv does not sync jedi version

rxrc/vimrc