From 0474725cce2f851b4dfa921740ca3c95855dfe04 Mon Sep 17 00:00:00 2001 From: Mitsuo Heijo Date: Thu, 19 Dec 2019 00:35:59 +0900 Subject: feature: Support yaml-language-server and lsp4xml --- settings/yaml-language-server.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 settings/yaml-language-server.vim (limited to 'settings/yaml-language-server.vim') 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 -- cgit v1.2.3-54-g00ecf