add golang support in vim

This commit is contained in:
Cyryl Płotnicki 2019-03-01 10:13:37 +00:00
parent c3e80633d1
commit e2854f0c6b

View file

@ -33,6 +33,14 @@ if executable('typescript-language-server')
\ }) \ })
endif 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
let g:lsp_signs_enabled = 1 let g:lsp_signs_enabled = 1
let g:lsp_diagnostics_echo_cursor = 1 let g:lsp_diagnostics_echo_cursor = 1