aboutsummaryrefslogtreecommitdiff
path: root/schema.json
blob: c9ccb91ef1a786d6a5ddabd9c5e7fc1ef6f6a0f6 (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
{
  "$schema": "http://json-schema.org/draft-04/schema",
  "type": "object",
  "title": "vim-lsp-settings",
  "additionalProperties": false,
  "patternProperties": {
    "^\\$schema$": {
      "type": "string"
    },
    "^([a-z0-9_-]+)+$": {
      "type": "array",
      "description": "filetype name",
      "items": {
        "description": "define command description",
        "type": "object",
        "additionalProperties": false,
        "required": [
          "command",
          "requires"
        ],
        "properties": {
          "command": {
            "description": "define name of language server",
            "type": "string"
          },
          "requires": {
            "description": "define commands to install this language server",
            "type": "array",
            "items": {
              "type": "string",
              "description": "executable command name"
            }
          },
          "vim-plugin": {
            "description": "define suggestion for vim-plugin",
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "extensions": {
                "type": "array",
                "items": {
                  "type": "string",
                  "description": "file extensions"
                }
              },
              "name": {
                "type": "string",
                "description": "plugin identify user/repo"
              }
            }
          }
        }
      }
    }
  }
}