aboutsummaryrefslogtreecommitdiff
path: root/settings/gopls.vim
blob: 91d2fc706879ce28aeda5df9c1920ab1f642dd6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
augroup vimlsp_settings_gopls
  au!
  LspRegisterServer {
      \ 'name': 'gopls',
      \ 'cmd': {server_info->lsp_settings#get('gopls', 'cmd', [lsp_settings#exec_path('gopls')])},
      \ 'root_uri':{server_info->lsp_settings#get('gopls', 'root_uri', lsp_settings#root_uri('gopls'))},
      \ 'initialization_options': lsp_settings#get('gopls', 'initialization_options', {"diagnostics": v:true, 'completeUnimported': v:true, 'matcher': 'fuzzy'}),
      \ 'whitelist': lsp_settings#get('gopls', 'whitelist', ['go']),
      \ 'blacklist': lsp_settings#get('gopls', 'blacklist', []),
      \ 'config': lsp_settings#get('gopls', 'config', lsp_settings#server_config('gopls')),
      \ 'workspace_config': lsp_settings#get('gopls', 'workspace_config', {}),
      \ }
augroup END