forked from rafi/vim-config
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjsonls.lua
More file actions
98 lines (96 loc) · 2.47 KB
/
jsonls.lua
File metadata and controls
98 lines (96 loc) · 2.47 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
-- json-language-server settings
--
local config = {
settings = {
json = {
format = { enable = true },
schemas = {
{
fileMatch = { '.babelrc.json', '.babelrc', 'babel.config.json' },
url = 'http://json.schemastore.org/babelrc.json'
},
{
fileMatch = { '.csslintrc' },
url = 'http://json.schemastore.org/csslintrc.json'
},
{
fileMatch = { '.eslintrc.json', '.eslintrc' },
url = 'http://json.schemastore.org/eslintrc'
},
{
fileMatch = { '.golangci.json' },
url = 'http://json.schemastore.org/golangci-lint.json'
},
{
fileMatch = { 'graphql.config.json', '.graphqlrc', '.graphqlrc.json' },
url = 'http://unpkg.com/graphql-config/config-schema.json'
},
{
fileMatch = { '.jshintrc' },
url = 'http://json.schemastore.org/jshintrc.json'
},
{
fileMatch = { 'lerna.json' },
url = 'http://json.schemastore.org/lerna'
},
{
fileMatch = {
'.markdownlintrc', '.markdownlint.json', '.markdownlint.jsonc'
},
url = 'http://json.schemastore.org/markdownlint.json'
},
{
fileMatch = { 'now.json', 'vercel.json' },
url = 'http://json.schemastore.org/now'
},
{
fileMatch = { 'package.json' },
url = 'http://json.schemastore.org/package.json'
},
{
fileMatch = { 'packer.json' },
url = 'http://json.schemastore.org/packer.json'
},
{
fileMatch = { '.postcssrc', '.postcssrc.json' },
url = 'http://json.schemastore.org/postcssrc.json'
},
{
fileMatch = {
'.prettierrc', '.prettierrc.json', 'prettier.config.json'
},
url = 'http://json.schemastore.org/prettierrc',
},
{
fileMatch = { 'resume.json' },
url = 'https://raw.githubusercontent.com/jsonresume/resume-schema/master/schema.json',
},
{
fileMatch = { '.solidarity', '.solidarity.json' },
url = 'http://json.schemastore.org/solidaritySchema.json'
},
{
fileMatch = {
'.stylelintrc', '.stylelintrc.json', 'stylelint.config.json'
},
url = 'http://json.schemastore.org/stylelintrc.json'
},
{
fileMatch = { 'swagger.json' },
url = 'http://json.schemastore.org/swagger-2.0.json'
},
{
fileMatch = { 'tsconfig.json' },
url = 'http://json.schemastore.org/tsconfig.json'
},
{
fileMatch = { 'tslint.json' },
url = 'http://json.schemastore.org/tslint.json'
}
}
}
}
}
return {
config = function(_) return config end,
}