aboutsummaryrefslogtreecommitdiff
path: root/settings/metals.vim
blob: 376d5f54235781359e60d8a4eb6b7eac10b7923e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
augroup vimlsp_settings_metals
  au!
  LspRegisterServer {
      \ 'name': 'metals',
      \ 'cmd': {server_info->lsp_settings#get('metals', 'cmd', [lsp_settings#exec_path('metals')])},
      \ 'root_uri':{server_info->lsp_settings#get('metals', 'root_uri', lsp_settings#root_uri(extend(['build.sbt'], g:lsp_settings_root_markers)))},
      \ 'initialization_options': lsp_settings#get('metals', 'initialization_options', v:null),
      \ 'whitelist': lsp_settings#get('metals', 'whitelist', ['scala', 'sbt']),
      \ 'blacklist': lsp_settings#get('metals', 'blacklist', []),
      \ 'config': lsp_settings#get('metals', 'config', {}),
      \ 'workspace_config': lsp_settings#get('metals', 'workspace_config', {}),
      \ }
augroup END