diff --git a/dotfiles/vimrc b/dotfiles/vimrc index 78f8068..905aa67 100644 --- a/dotfiles/vimrc +++ b/dotfiles/vimrc @@ -143,7 +143,9 @@ let g:syntastic_xslt_checkers=[''] nnoremap :SyntasticCheck :Errors " Load vim-ycm if installed on the system level -if isdirectory("/usr/share/vim-youcompleteme") +" Currently only works on debian-based systems... +" It also does not play nicely with virtual envs, so we skip it then +if isdirectory("/usr/share/vim-youcompleteme") && empty($VIRTUAL_ENV) let g:ycm_gopls_binary_path='gopls' let g:ycm_autoclose_preview_window_after_insertion=1 set runtimepath+=/usr/share/vim-youcompleteme