aboutsummaryrefslogtreecommitdiff
path: root/settings/sourcekit-lsp.vim
blob: d3c13d17c8b6fd2436d34075f7beafcff737fe02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
augroup vimlsp_settings_sourcekit_lsp
  au!
  LspRegisterServer {
      \ 'name': 'sourcekit-lsp',
      \ 'cmd': {server_info->lsp_settings#get('sourcekit-lsp', 'cmd', [lsp_settings#exec_path('sourcekit-lsp')])},
      \ 'root_uri':{server_info->lsp_settings#get('sourcekit-lsp', 'root_uri', lsp_settings#root_uri(extend(['Package.swift', '.xcodeproj', '.xcworkspace', 'Cartfile', 'Podfile'], g:lsp_settings_root_markers)))},
      \ 'initialization_options': lsp_settings#get('sourcekit-lsp', 'initialization_options', {}),
      \ 'whitelist': lsp_settings#get('sourcekit-lsp', 'whitelist', ['swift']),
      \ 'blacklist': lsp_settings#get('sourcekit-lsp', 'blacklist', []),
      \ 'config': lsp_settings#get('sourcekit-lsp', 'config', lsp_settings#server_config('sourcekit-lsp')),
      \ 'workspace_config': lsp_settings#get('sourcekit-lsp', 'workspace_config', {}),
      \ }
augroup END