aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--settings.json54
-rw-r--r--settings/json-languageserver.vim2
2 files changed, 35 insertions, 21 deletions
diff --git a/settings.json b/settings.json
index a4d781f..a81206c 100644
--- a/settings.json
+++ b/settings.json
@@ -206,6 +206,20 @@
]
}
],
+ "jsonc": [
+ {
+ "command": "json-languageserver",
+ "requires": [
+ "npm"
+ ],
+ "vim-plugin": {
+ "extensions": [
+ "cjson"
+ ],
+ "name": "neoclide/jsonc.vim"
+ }
+ }
+ ],
"kotlin": [
{
"command": "kotlin-language-server",
@@ -256,6 +270,26 @@
}
}
],
+ "perl": [
+ {
+ "command": "slp",
+ "requires": [
+ "cpanm"
+ ]
+ },
+ {
+ "command": "monastery",
+ "requires": [
+ "cpanm"
+ ]
+ },
+ {
+ "command": "perl-languageserver",
+ "requires": [
+ "cpanm"
+ ]
+ }
+ ],
"php": [
{
"command": "intelephense",
@@ -426,26 +460,6 @@
]
}
],
- "perl": [
- {
- "command": "slp",
- "requires": [
- "cpanm"
- ]
- },
- {
- "command": "monastery",
- "requires": [
- "cpanm"
- ]
- },
- {
- "command": "perl-languageserver",
- "requires": [
- "cpanm"
- ]
- }
- ],
"yaml": [
{
"command": "yaml-language-server",
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']}}}),