diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2020-01-24 21:41:55 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2020-01-24 21:41:55 +0900 |
commit | b04982423e4bada1c0fa51393a07d30257fa8ca9 (patch) | |
tree | 7c92cda6a3f49a7baf9489941d745ee211e8ac8b /settings | |
parent | 90239e88b5dc40479403fc322d03fe1926809f94 (diff) | |
download | vim-lsp-settings-b04982423e4bada1c0fa51393a07d30257fa8ca9.tar.gz vim-lsp-settings-b04982423e4bada1c0fa51393a07d30257fa8ca9.tar.bz2 vim-lsp-settings-b04982423e4bada1c0fa51393a07d30257fa8ca9.zip |
Support jsonc
Diffstat (limited to 'settings')
-rw-r--r-- | settings/json-languageserver.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/json-languageserver.vim b/settings/json-languageserver.vim index d7e79ca..a19b3b6 100644 --- a/settings/json-languageserver.vim +++ b/settings/json-languageserver.vim @@ -5,7 +5,7 @@ augroup vimlsp_settings_json_languageserver \ 'cmd': {server_info->lsp_settings#get('json-languageserver', 'cmd', [lsp_settings#exec_path('json-languageserver'), '--stdio'])}, \ 'root_uri':{server_info->lsp_settings#get('json-languageserver', 'root_uri', lsp_settings#root_uri(g:lsp_settings_root_markers))}, \ 'initialization_options': lsp_settings#get('json-languageserver', 'initialization_options', v:null), - \ 'whitelist': lsp_settings#get('json-languageserver', 'whitelist', ['json']), + \ 'whitelist': lsp_settings#get('json-languageserver', 'whitelist', ['json', 'jsonc']), \ 'blacklist': lsp_settings#get('json-languageserver', 'blacklist', []), \ 'config': lsp_settings#get('json-languageserver', 'config', {}), \ 'workspace_config': lsp_settings#get('json-languageserver', 'workspace_config', {name, key->{'json': {'format': {'enable': v:true}, 'schemas': json_decode(join(readfile(expand('<sfile>:h:h') . '/data/catalog.json'), "\n"))['schemas']}}}), |