aboutsummaryrefslogtreecommitdiff
path: root/settings/elm-language-server.vim
blob: 03e8c1d9d859ad8fe1b6eca3044c01522c6c9ce8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
augroup vimlsp_settings_elm_language_server
  au!
  LspRegisterServer {
      \ 'name': 'elm-language-server',
      \ 'cmd': {server_info->lsp_settings#get('elm-language-server', 'cmd', [lsp_settings#exec_path('elm-language-server')])},
      \ 'root_uri':{server_info->lsp_settings#get('elm-language-server', 'root_uri', lsp_settings#root_uri(extend(['elm.json'], g:lsp_settings_root_markers)))},
      \ 'initialization_options': lsp_settings#get('elm-language-server', 'initialization_options', {'elmPath': 'elm', 'runtime': 'node', 'elmFormatPath': 'elm-format', 'elmTestPath': 'elm-test'}),
      \ 'whitelist': lsp_settings#get('elm-language-server', 'whitelist', ['elm', 'elm.tsx']),
      \ 'blacklist': lsp_settings#get('elm-language-server', 'blacklist', []),
      \ 'config': lsp_settings#get('elm-language-server', 'config', {}),
      \ 'workspace_config': lsp_settings#get('elm-language-server', 'workspace_config', {}),
      \ }
augroup END