add golang support in vim
This commit is contained in:
parent
c3e80633d1
commit
e2854f0c6b
1 changed files with 8 additions and 0 deletions
|
@ -33,6 +33,14 @@ if executable('typescript-language-server')
|
|||
\ })
|
||||
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_diagnostics_echo_cursor = 1
|
||||
|
||||
|
|
Loading…
Reference in a new issue