From 4ec8f22ab855582217ed3c4a7622566505de78bd Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Sun, 4 Jul 2021 21:39:25 -0700 Subject: [PATCH] Don't load YCM in a virtualenv. --- dotfiles/vimrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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