mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-12 20:35:54 +01:00
15 lines
1010 B
VimL
15 lines
1010 B
VimL
augroup vim_lsp_settings_glslls
|
|
au!
|
|
LspRegisterServer {
|
|
\ 'name': 'glslls',
|
|
\ 'cmd': {server_info->lsp_settings#get('glslls', 'cmd', [lsp_settings#exec_path('glslls')]+lsp_settings#get('glslls', 'args', ['--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),
|
|
\ 'allowlist': lsp_settings#get('glslls', 'allowlist', ['glsl']),
|
|
\ 'blocklist': lsp_settings#get('glslls', 'blocklist', []),
|
|
\ '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
|