aboutsummaryrefslogtreecommitdiff
path: root/schema.json
blob: fa36bacb706cbb0f8214829f4e669f671741daf0 (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
68
69
70
71
72
73
74
75
76
77
78
79
{
  "$schema": "http://json-schema.org/draft-04/schema",
  "additionalProperties": false,
  "patternProperties": {
    "^([a-z0-9_-]+)+$": {
      "description": "filetype name",
      "items": {
        "additionalProperties": false,
        "description": "define command description",
        "properties": {
          "command": {
            "description": "define name of language server",
            "pattern": "^[a-zA-Z0-9_-]+$",
            "type": "string"
          },
          "config": {
            "default": {},
            "description": "server related configurations",
            "type": "object"
          },
          "disabled": {
            "default": true,
            "description": "disable this server",
            "type": "boolean"
          },
          "requires": {
            "default": [],
            "description": "define commands to install this language server",
            "items": {
              "description": "executable command name",
              "type": "string"
            },
            "type": "array"
          },
          "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"
          },
          "vim_plugin": {
            "additionalProperties": false,
            "default": {},
            "description": "define suggestion for vim-plugin",
            "properties": {
              "extensions": {
                "default": [],
                "items": {
                  "description": "file extensions",
                  "type": "string"
                },
                "type": "array"
              },
              "name": {
                "description": "plugin identify user/repo",
                "type": "string"
              }
            },
            "type": "object"
          }
        },
        "required": [
          "command",
          "requires"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "^\\$schema$": {
      "type": "string"
    }
  },
  "title": "vim-lsp-settings",
  "type": "object"
}