aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2020-01-19 00:02:30 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2020-01-19 00:02:30 +0900
commitd6395d74a302d8a1e2fb17e17dfaf224c40bb89c (patch)
tree47af62c2b8bdd888764e7705ddef6f51c11d4236
parentbe347354f073a3f8f738add4a12281a1d78813ef (diff)
downloadvim-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.vim2
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