This commit is contained in:
David Tomaschik
2026-02-25 20:31:28 -08:00
parent a46ee1f24c
commit 92fb8cb47d
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
def Settings( **kwargs ):
client_data = kwargs[ 'client_data' ]
return {
'interpreter_path': client_data[ 'g:ycm_python_interpreter_path' ] or '/usr/bin/python3',
'sys_path': client_data[ 'g:ycm_python_sys_path' ]
}

View File

@@ -148,6 +148,15 @@ if filereadable(expand('~/.vim/plugged/YouCompleteMe/python/ycm/ycm_core.so'))
endif
unlet! g:tmp_rust_path
endif
" Point this to the python executable where YCM is installed
let g:ycm_server_python_interpreter = '/usr/bin/python3'
let g:ycm_python_interpreter_path = ''
let g:ycm_python_sys_path = []
let g:ycm_extra_conf_vim_data = [
\ 'g:ycm_python_interpreter_path',
\ 'g:ycm_python_sys_path'
\]
let g:ycm_global_ycm_extra_conf = '~/.config/ycm_extra_conf.py'
" Include a .vimrc.local if it exists
if filereadable(glob("~/.vimrc.local"))