aboutsummaryrefslogtreecommitdiff
path: root/local-schema.json
blob: bf49ddd4ff5da795411db49f80a73ac15a9c5253 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
  "$schema": "http://json-schema.org/draft-04/schema",
  "additionalProperties": false,
  "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"
        },
        "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"
        },
        "disabled": {
          "default": true,
          "description": "set true if you want to enable server",
          "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"
        },
        "root_uri_patterns": {
          "default": [],
          "description": "define patterns with file or directory names for finding root_uri",
          "items": {
            "description": "file or directory name",
            "type": "string"
          },
          "type": "array"
        },
        "whitelist": {
          "items": {
            "description": "define name of whitelisted language server",
            "pattern": "^[a-zA-Z0-9_-]+$",
            "type": "string"
          },
          "type": "array"
        },
        "workspace_config": {
          "type": "object"
        }
      },
      "type": "object"
    }
  },
  "title": "vim-lsp-settings-local",
  "type": "object"
}