aboutsummaryrefslogtreecommitdiff
path: root/schema.json
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2020-01-24 22:59:44 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2020-01-24 22:59:44 +0900
commit6df097286f96be0d4aade9edb9d2390e34a3e070 (patch)
tree7f3940622face0f4626f3c2a4f11fb0ea0e66e8b /schema.json
parentb04982423e4bada1c0fa51393a07d30257fa8ca9 (diff)
downloadvim-lsp-settings-6df097286f96be0d4aade9edb9d2390e34a3e070.tar.gz
vim-lsp-settings-6df097286f96be0d4aade9edb9d2390e34a3e070.tar.bz2
vim-lsp-settings-6df097286f96be0d4aade9edb9d2390e34a3e070.zip
Add json schema
Diffstat (limited to 'schema.json')
-rw-r--r--schema.json56
1 files changed, 56 insertions, 0 deletions
diff --git a/schema.json b/schema.json
new file mode 100644
index 0000000..3998775
--- /dev/null
+++ b/schema.json
@@ -0,0 +1,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",
+ "title": "filetype name",
+ "items": {
+ "title": "define command description",
+ "type": "object",
+ "additionalProperties": false,
+ "required": [
+ "command",
+ "requires"
+ ],
+ "properties": {
+ "command": {
+ "title": "define name of language server",
+ "type": "string"
+ },
+ "requires": {
+ "title": "define commands to install this language server",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "title": "executable command name"
+ }
+ },
+ "vim-plugin": {
+ "title": "define suggestion for vim-plugin",
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "extensions": {
+ "type": "array",
+ "items": {
+ "type": "string",
+ "title": "file extensions"
+ }
+ },
+ "name": {
+ "type": "string",
+ "title": "plugin identify user/repo"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}