aboutsummaryrefslogtreecommitdiff
path: root/settings/gopls.vim
blob: d403ba8f304891efbd8d76b051ceda246c86e201 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
augroup vimlsp_settings_gopls
  au!
  autocmd User lsp_setup ++once call lsp#register_server({
      \ 'name': 'gopls',
      \ 'cmd': {server_info->lsp_settings#get('gopls', 'cmd', [lsp_settings#exec_path('gopls')])},
      \ 'initialization_options': lsp_settings#get('gopls', 'initialization_options', {"diagnostics": "true"}),
      \ 'whitelist': lsp_settings#get('gopls', 'whitelist', ['go']),
      \ 'blacklist': lsp_settings#get('gopls', 'blacklist', []),
      \ 'config': lsp_settings#get('gopls', 'config', {}),
      \ 'workspace_config': lsp_settings#get('gopls', 'workspace_config', {}),
      \ })
augroup END