mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 05:29:09 -07:00
Setup rust paths for ycm
This commit is contained in:
@@ -157,6 +157,12 @@ if isdirectory("/usr/share/vim-youcompleteme") && empty($VIRTUAL_ENV)
|
|||||||
"let g:ycm_gopls_binary_path='gopls'
|
"let g:ycm_gopls_binary_path='gopls'
|
||||||
let g:ycm_autoclose_preview_window_after_insertion=1
|
let g:ycm_autoclose_preview_window_after_insertion=1
|
||||||
set runtimepath+=/usr/share/vim-youcompleteme
|
set runtimepath+=/usr/share/vim-youcompleteme
|
||||||
|
" Add rust settings
|
||||||
|
let g:tmp_rust_path=trim(system("rustc --print sysroot"))
|
||||||
|
if isdirectory(g:tmp_rust_path)
|
||||||
|
let g:ycm_rust_toolchain_root=g:tmp_rust_path
|
||||||
|
endif
|
||||||
|
unlet! g:tmp_rust_path
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Enable vim-bracketed-paste mode
|
" Enable vim-bracketed-paste mode
|
||||||
|
|||||||
Reference in New Issue
Block a user