aboutsummaryrefslogtreecommitdiff
path: root/settings/glslls.vim
diff options
context:
space:
mode:
Diffstat (limited to 'settings/glslls.vim')
-rw-r--r--settings/glslls.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/settings/glslls.vim b/settings/glslls.vim
new file mode 100644
index 0000000..078fc66
--- /dev/null
+++ b/settings/glslls.vim
@@ -0,0 +1,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