diff options
author | Mitsuo Heijo <mitsuo.heijo@gmail.com> | 2019-12-19 00:35:59 +0900 |
---|---|---|
committer | Mitsuo Heijo <mitsuo.heijo@gmail.com> | 2019-12-19 00:35:59 +0900 |
commit | 0474725cce2f851b4dfa921740ca3c95855dfe04 (patch) | |
tree | dd36236638dedef440e52350f88fe3256f99bfad /settings/yaml-language-server.vim | |
parent | b384fe6f3c8c46315821bf2a08798bfdcda880ee (diff) | |
download | vim-lsp-settings-0474725cce2f851b4dfa921740ca3c95855dfe04.tar.gz vim-lsp-settings-0474725cce2f851b4dfa921740ca3c95855dfe04.tar.bz2 vim-lsp-settings-0474725cce2f851b4dfa921740ca3c95855dfe04.zip |
feature: Support yaml-language-server and lsp4xml
Diffstat (limited to 'settings/yaml-language-server.vim')
-rw-r--r-- | settings/yaml-language-server.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/settings/yaml-language-server.vim b/settings/yaml-language-server.vim new file mode 100644 index 0000000..e8368a4 --- /dev/null +++ b/settings/yaml-language-server.vim @@ -0,0 +1,11 @@ +augroup vimlsp_settings_yaml_language_server + au! + autocmd User lsp_setup ++once call lsp#register_server({ + \ 'name': 'yaml-language-server', + \ 'cmd': {server_info->lsp_settings#get('yaml-language-server', 'cmd', [lsp_settings#exec_path('yaml-language-server'), '--stdio'])}, + \ 'whitelist': lsp_settings#get('yaml-language-server', 'whitelist', ['yaml']), + \ 'blacklist': lsp_settings#get('yaml-language-server', 'blacklist', []), + \ 'config': lsp_settings#get('yaml-language-server', 'config', {}), + \ 'workspace_config': lsp_settings#get('yaml-language-server', 'workspace_config', {}), + \ }) +augroup END |