diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2020-02-05 16:22:41 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2020-02-05 16:22:41 +0900 |
commit | 3e4d8bf5c5fff96ae42b1f2a72aaf236e7db1eb9 (patch) | |
tree | f342b092d28541af8e1ef14adee8c89938c33f7b | |
parent | c3382a172d3bd3876a5917c753887ad716356565 (diff) | |
download | vim-lsp-settings-3e4d8bf5c5fff96ae42b1f2a72aaf236e7db1eb9.tar.gz vim-lsp-settings-3e4d8bf5c5fff96ae42b1f2a72aaf236e7db1eb9.tar.bz2 vim-lsp-settings-3e4d8bf5c5fff96ae42b1f2a72aaf236e7db1eb9.zip |
Add glslls
-rw-r--r-- | settings.json | 21 | ||||
-rw-r--r-- | settings/glslls.vim | 13 |
2 files changed, 34 insertions, 0 deletions
diff --git a/settings.json b/settings.json index d6fe430..4fd9e96 100644 --- a/settings.json +++ b/settings.json @@ -162,6 +162,27 @@ ] } ], + "glsl": [ + { + "command": "glslls", + "requires": [ + "cmake", + "git", + "make" + ], + "vim-plugin": { + "extensions": [ + "vert", + "tesc", + "tese", + "glsl", + "geom", + "frag" + ], + "name": "tikhomirov/vim-glsl" + } + } + ], "go": [ { "command": "gopls", 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 |