aboutsummaryrefslogtreecommitdiff
path: root/settings/pyls-ms.vim
blob: e1439cee38025ab15f849978491eb59165100d36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
augroup vimlsp_settings_pyls_ms
  au!
  LspRegisterServer {
      \ 'name': 'pyls-ms',
      \ 'cmd': {server_info->lsp_settings#get('pyls-ms', 'cmd', [lsp_settings#exec_path('pyls-ms')])},
      \ 'root_uri':{server_info->lsp_settings#get('pyls-ms', 'root_uri', lsp_settings#root_uri('pyls-ms'))},
      \ 'initialization_options': lsp_settings#get('pyls-ms', 'initialization_options', {
      \   'analysisUpdates': v:true,
      \   'asyncStartup': v:true,
      \   'displayOptions': {},
      \   'interpreter': {
      \      'properties': {
      \        'InterpreterPath': lsp_settings#get('pyls-ms', 'python-path', {key, name->exepath('python')}),
      \        'UseDefaultDatabase': v:true,
      \        'Version': lsp_settings#get('pyls-ms', 'python-ver', {key, name->trim(matchstr(system('python -V'), '\s\zs\S\+'))}),
      \      },
      \    },
      \  }),
      \ 'whitelist': lsp_settings#get('pyls-ms', 'whitelist', ['python']),
      \ 'blacklist': lsp_settings#get('pyls-ms', 'blacklist', []),
      \ 'config': lsp_settings#get('pyls-ms', 'config', lsp_settings#server_config('pyls-ms')),
      \ 'workspace_config': lsp_settings#get('pyls-ms', 'workspace_config', {
      \   'python': {
      \     'analysis': {
      \       'errors': [],
      \       'info': [],
      \       'disabled': [],
      \     },
      \   },
      \ }),
      \ 'semantic_highlight': lsp_settings#get('pyls-ms', 'semantic_highlight', {}),
      \ }
augroup END