aboutsummaryrefslogtreecommitdiff
path: root/settings/glslls.vim
blob: 48af6b578a0748b3293537f91fee4357f01e0b67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
augroup vim_lsp_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('glslls'))},
      \ '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', lsp_settings#server_config('glslls')),
      \ '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']}}}),
      \ 'semantic_highlight': lsp_settings#get('glslls', 'semantic_highlight', {}),
      \ }
augroup END