aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2020-02-17 13:56:18 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2020-02-17 13:56:18 +0900
commitbb1dbc53da853aefc81b0bd042fee339c5905078 (patch)
treee838b05f6ff3f3c267fcd7bbb2f012b76f667f23
parent4ef78b730cde5839d16191ebbc7da73ff33bd196 (diff)
downloadvim-lsp-settings-bb1dbc53da853aefc81b0bd042fee339c5905078.tar.gz
vim-lsp-settings-bb1dbc53da853aefc81b0bd042fee339c5905078.tar.bz2
vim-lsp-settings-bb1dbc53da853aefc81b0bd042fee339c5905078.zip
Fix local-schema.json
-rw-r--r--local-schema.json81
1 files changed, 45 insertions, 36 deletions
diff --git a/local-schema.json b/local-schema.json
index 744f1d7..8d48843 100644
--- a/local-schema.json
+++ b/local-schema.json
@@ -1,48 +1,57 @@
{
"$schema": "http://json-schema.org/draft-04/schema",
"additionalProperties": false,
- "items": {
- "type": "object",
- "properties": {
- "blacklist": {
- "items": {
- "pattern": "^[a-zA-Z0-9_-]+$",
- "type": "string"
+ "patternProperties": {
+ "^([a-z0-9_-]+)+$": {
+ "description": "define name of language server",
+ "properties": {
+ "blacklist": {
+ "items": {
+ "description": "define name of blacklisted language server",
+ "pattern": "^[a-zA-Z0-9_-]+$",
+ "type": "string"
+ },
+ "type": "array"
},
- "type": "array"
- },
- "cmd": {
- "items": {
- "type": "string"
+ "cmd": {
+ "description": "define command line arguments for the language server",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "config": {
+ "description": "define configuration for the language server",
+ "type": "object"
},
- "type": "array"
- },
- "config": {
- "type": "object"
- },
- "disabled": {
- "default": true,
- "type": "boolean"
- },
- "initialization_options": {
- "type": "object"
- },
- "root_uri": {
- "pattern": "^file://\\S+$",
- "type": "string"
- },
- "whitelist": {
- "items": {
- "pattern": "^[a-zA-Z0-9_-]+$",
+ "disabled": {
+ "description": "set true if you want to enable server",
+ "default": true,
+ "type": "boolean"
+ },
+ "initialization_options": {
+ "description": "define initialization_options for the language server",
+ "type": "object"
+ },
+ "root_uri": {
+ "description": "define root_uri for current project",
+ "pattern": "^file://\\S+$",
"type": "string"
},
- "type": "array"
- },
- "workspace_config": {
- "type": "object"
+ "whitelist": {
+ "items": {
+ "description": "define name of whitelisted language server",
+ "pattern": "^[a-zA-Z0-9_-]+$",
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "workspace_config": {
+ "type": "object"
+ }
}
}
},
"title": "vim-lsp-settings-local",
- "type": "array"
+ "type": "object"
}