Load vim-lsp if gopls is present alone

Fri, 15 May 2020 22:55:03 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Fri, 15 May 2020 22:55:03 -0500
changeset 859
9cd1d19d8cc6
parent 858
2d69c23ef58b
child 860
60667f14090c

Load vim-lsp if gopls is present alone

.vimrc file | annotate | diff | comparison | revisions
--- a/.vimrc
+++ b/.vimrc
@@ -34,7 +34,7 @@ let s:filename   = expand('<sfile>')
   Plug 'lifepillar/vim-mucomplete'
   Plug 'tpope/vim-endwise'
 
-  if executable('rls')
+  if executable('rls') || executable('gopls')
     Plug 'prabirshrestha/async.vim'
     Plug 'prabirshrestha/vim-lsp'
   end

mercurial