diff options
author | mattn <mattn.jp@gmail.com> | 2019-12-19 00:53:40 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-19 00:53:40 +0900 |
commit | d7bd902603e1955935748282757da191162631c8 (patch) | |
tree | d36de0dcd6b1ee70918ac4a298e6369ac6a62cc2 /settings | |
parent | fe18fd71e6a5ec372891a368adafc1965c67c33d (diff) | |
parent | 0474725cce2f851b4dfa921740ca3c95855dfe04 (diff) | |
download | vim-lsp-settings-d7bd902603e1955935748282757da191162631c8.tar.gz vim-lsp-settings-d7bd902603e1955935748282757da191162631c8.tar.bz2 vim-lsp-settings-d7bd902603e1955935748282757da191162631c8.zip |
Merge pull request #5 from johejo/feature/support_yaml_and_xml
feature: Support yaml-language-server and lsp4xml
Diffstat (limited to 'settings')
-rw-r--r-- | settings/lsp4xml.vim | 11 | ||||
-rw-r--r-- | settings/yaml-language-server.vim | 11 |
2 files changed, 22 insertions, 0 deletions
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 |