-
Notifications
You must be signed in to change notification settings - Fork 306
Servers Go
Prabir Shrestha edited this page Jan 14, 2019
·
30 revisions
Pick any one of the following servers.
go get -u golang.org/x/tools/cmd/golsp
go get -u github.com/sourcegraph/go-langserver
go get -u github.com/saibing/bingo
if executable('golsp')
au User lsp_setup call lsp#register_server({
\ 'name': 'golsp',
\ 'cmd': {server_info->['golsp', '-mode', 'stdio']},
\ 'whitelist': ['go'],
\ })
endif
if executable('go-langserver')
au User lsp_setup call lsp#register_server({
\ 'name': 'go-langserver',
\ 'cmd': {server_info->['go-langserver', '-gocodecompletion']},
\ 'whitelist': ['go'],
\ })
endif
if executable('bingo')
au User lsp_setup call lsp#register_server({
\ 'name': 'bingo',
\ 'cmd': {server_info->['bingo', '-mode', 'stdio']},
\ 'whitelist': ['go'],
\ })
endif