aboutsummaryrefslogtreecommitdiff
path: root/settings/glslls.vim
blob: 078fc66ce6a2509b00573295e52ac0bf91dab503 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
augroup vimlsp_settings_glslls
  au!
  LspRegisterServer {
      \ 'name': 'glslls',
      \ 'cmd': {server_info->lsp_settings#get('glslls', 'cmd', [lsp_settings#exec_path('glslls'), '--stdin'])},
      \ 'root_uri':{server_info->lsp_settings#get('glslls', 'root_uri', lsp_settings#root_uri(g:lsp_settings_root_markers))},
      \ 'initialization_options': lsp_settings#get('glslls', 'initialization_options', v:null),
      \ 'whitelist': lsp_settings#get('glslls', 'whitelist', ['glsl']),
      \ 'blacklist': lsp_settings#get('glslls', 'blacklist', []),
      \ 'config': lsp_settings#get('glslls', 'config', {}),
      \ 'workspace_config': lsp_settings#get('glslls', 'workspace_config', {name, key->{'json': {'format': {'enable': v:true}, 'schemas': json_decode(join(readfile(expand('<sfile>:h:h') . '/data/catalog.json'), "\n"))['schemas']}}}),
      \ }
augroup END