From cee31387de1663c1d510be538325914cc0d1d3a9 Mon Sep 17 00:00:00 2001
From: Anthony Cicchetti <acicchetti@constantcontact.com>
Date: Fri, 15 Nov 2019 09:18:19 -0500
Subject: [PATCH] Added rope as a python package

---
 vim/vimrc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/vim/vimrc b/vim/vimrc
index 9ba0c11..868862e 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -87,7 +87,7 @@ endfunction
 
 "Setting up coc-tools
 function! s:handlepython(job_id, data, event_type)
-    call s:handlegeneric('pip install python-language-server pynvim', 'PYTHON', a:job_id, a:data, a:event_type)
+    call s:handlegeneric('pip install python-language-server pynvim rope', 'PYTHON', a:job_id, a:data, a:event_type)
 endfunction
 
 function! s:handleruby(job_id, data, event_type)
@@ -113,8 +113,8 @@ endfunction
 
 
 function! s:ensurePython()
-    if (s:cmdexitcode('pyls -h') || s:cmdexitcode('python -c "import neovim"'))
-        let l:jobid = s:asyncFunc('pip install python-language-server pynvim', 's:handlepython')
+    if (s:cmdexitcode('pyls -h') || s:cmdexitcode('python -c "import neovim"') || s:cmdexitcode('python -c "import rope"'))
+        let l:jobid = s:asyncFunc('pip install python-language-server pynvim rope', 's:handlepython')
         au VimEnter * CocInstall coc-python
     endif
 endfunction