aboutsummaryrefslogtreecommitdiff
path: root/settings/vim-language-server.vim
blob: 986b36e1e7a4e19ae78766fe7411e3cd668243b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
augroup vimlsp_settings_vim_language_server
  au!
  LspRegisterServer {
      \ 'name': 'vim-language-server',
      \ 'cmd': {server_info->lsp_settings#get('vim-language-server', 'cmd', [lsp_settings#exec_path('vim-language-server'), '--stdio'])},
      \ 'root_uri':{server_info->lsp_settings#get('vim-language-server', 'root_uri', lsp_settings#root_uri(['.vim/', 'vimfiles/']))},
      \ 'initialization_options': extend({'vimruntime': $VIMRUNTIME, 'runtimepath': &rtp}, lsp_settings#get('vim-language-server', 'initialization_options', {}), 'force'),
      \ 'whitelist': lsp_settings#get('vim-language-server', 'whitelist', ['vim']),
      \ 'blacklist': lsp_settings#get('vimbash-language-server', 'blacklist', []),
      \ 'config': lsp_settings#get('vim-language-server', 'config', lsp_settings#server_config('vim-language-server')),
      \ 'workspace_config': lsp_settings#get('vim-language-server', 'workspace_config', {}),
      \ }
augroup END