aboutsummaryrefslogtreecommitdiff
path: root/setting/gopls.vim
blob: c5fcc88bebe74ef46f3520e1f0018d0f9344f3c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
augroup vimlsp_settings_gopls
  au!
  autocmd User lsp_setup call lsp#register_server({
      \ 'name': 'gopls',
      \ 'cmd': lsp_settings#get('gopls', 'cmd', {server_info->[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