gopls pls

Wed, 27 Nov 2019 05:12:39 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 27 Nov 2019 05:12:39 -0600
changeset 833
b47cbc3b5db1
parent 832
8acb094e5e12
child 835
49826fe1c850

gopls pls

.vimrc file | annotate | diff | comparison | revisions
--- a/.vimrc
+++ b/.vimrc
@@ -322,7 +322,7 @@ let g:perl_compiler_force_warnings = 0
 let g:plug_threads = 3
 
 ">> vim-polyglot
-let g:polyglot_disabled = ['vifm', 'perl']
+let g:polyglot_disabled = ['vifm', 'perl', 'go']
 
 ">> mucomplete
 " enable and prefer local buffer before tags
@@ -346,11 +346,11 @@ augroup vim-lsp
       \ })
   endif
 
-  if executable('go-langserver')
+  if executable('gopls')
     autocmd FileType go setlocal omnifunc=lsp#complete
     autocmd User lsp_setup call lsp#register_server({
-      \ 'name': 'go-langserver',
-      \ 'cmd': {server_info->['go-langserver']},
+      \ 'name': 'go-lang',
+      \ 'cmd': {server_info->['gopls']},
       \ 'whitelist': ['go'],
       \})
   endif

mercurial