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/lsp4xml.vim | 11 +++++++++++ settings/yaml-language-server.vim | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 settings/lsp4xml.vim create mode 100644 settings/yaml-language-server.vim (limited to 'settings') diff --git a/settings/lsp4xml.vim b/settings/lsp4xml.vim new file mode 100644 index 0000000..8fc4f61 --- /dev/null +++ b/settings/lsp4xml.vim @@ -0,0 +1,11 @@ +augroup vimlsp_settings_lsp4xml + au! + autocmd User lsp_setup ++once call lsp#register_server({ + \ 'name': 'lsp4xml', + \ 'cmd': {server_info->lsp_settings#get('lsp4xml', 'cmd', [lsp_settings#exec_path('lsp4xml')])}, + \ 'whitelist': lsp_settings#get('lsp4xml', 'whitelist', ['xml']), + \ 'blacklist': lsp_settings#get('lsp4xml', 'blacklist', []), + \ 'config': lsp_settings#get('lsp4xml', 'config', {}), + \ 'workspace_config': lsp_settings#get('lsp4xml', 'workspace_config', {}), + \ }) +augroup END 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