diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2020-01-19 00:02:30 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2020-01-19 00:02:30 +0900 |
commit | d6395d74a302d8a1e2fb17e17dfaf224c40bb89c (patch) | |
tree | 47af62c2b8bdd888764e7705ddef6f51c11d4236 | |
parent | be347354f073a3f8f738add4a12281a1d78813ef (diff) | |
download | vim-lsp-settings-d6395d74a302d8a1e2fb17e17dfaf224c40bb89c.tar.gz vim-lsp-settings-d6395d74a302d8a1e2fb17e17dfaf224c40bb89c.tar.bz2 vim-lsp-settings-d6395d74a302d8a1e2fb17e17dfaf224c40bb89c.zip |
Enable schemas for YAML
-rw-r--r-- | settings/yaml-language-server.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/yaml-language-server.vim b/settings/yaml-language-server.vim index 7fffc67..c9e91c8 100644 --- a/settings/yaml-language-server.vim +++ b/settings/yaml-language-server.vim @@ -8,6 +8,6 @@ augroup vimlsp_settings_yaml_language_server \ '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', {}), + \ 'workspace_config': lsp_settings#get('yaml-language-server', '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 |