-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsublime-package.json
316 lines (316 loc) · 12.4 KB
/
sublime-package.json
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
{
"contributions": {
"settings": [
{
"file_patterns": [
"/LSP-clangd.sublime-settings"
],
"schema": {
"$id": "sublime://settings/LSP-clangd",
"definitions": {
"PluginConfig": {
"properties": {
"binary": {
"type": "string",
"default": "system",
"description": "The clangd binary to use.",
"enum": [
"system",
"auto",
"github",
"custom"
],
"enumDescriptions": [
"Prefers the system binary found in path",
"Prefers the system binary but falls back to GitHub without user intervention",
"Prefers the latest tested release from GitHub",
"Use the custom command in the initializationOptions below",
],
},
"system_binary": {
"type": "string",
"default": "clangd",
"markdownDescription": "The binary to use when `binary` is set to `system`."
},
"initializationOptions": {
"additionalProperties": false,
"properties": {
"custom_command": {
"type": "array",
"default": [],
"markdownDescription": "A custom command to start clangd. Set `binary` to `custom` to use this command. The command-line arguments which are generated from the `clang.*` settings are appended to this command."
},
"clangdFileStatus": {
"type": "boolean",
"description": "Enables receiving textDocument/clangd.fileStatus notifications.",
"enum": [
false
],
"default": false,
},
"fallbackFlags": {
"type": "array",
"default": [],
"description": "Controls the flags used when no specific compile command is found. The compile command will be approximately clang $FILE $fallbackFlags in this case."
},
"clangd.compile-commands-dir": {
"type": [
"null",
"string"
],
"default": null,
"description": "Specify a path to look for compile_commands.json. If path is invalid, clangd will look in the current directory and parent paths of each source file."
},
"clangd.query-driver": {
"type": [
"null",
"string"
],
"default": null,
"description": "Comma separated list of globs for white-listing gcc-compatible drivers that are safe to execute."
},
"clangd.all-scopes-completion": {
"type": [
"boolean",
"null"
],
"default": null,
"description": "If set to true, code completion will include index symbols that are not defined in the scopes (e.g. namespaces) visible from the code completion point."
},
"clangd.background-index": {
"type": [
"boolean",
"null"
],
"default": null,
"description": "Index project code in the background and persist index on disk."
},
"clangd.background-index-priority": {
"type": [
"null",
"string"
],
"default": null,
"description": "Thread priority for building the background index. The effect of this flag is OS-specific.",
"enum": [
null,
"background",
"low",
"normal"
]
},
"clangd.clang-tidy": {
"type": [
"boolean",
"null"
],
"default": null,
"description": "Enable clang-tidy diagnostics."
},
"clangd.completion-style": {
"type": [
"null",
"string"
],
"default": null,
"description": "Granularity of code completion suggestions",
"enum": [
null,
"detailed",
"bundled"
],
"enumDescriptions": [
"Use the clangd default",
"One completion item for each semantically distinct completion, with full type information",
"Similar completion items (e.g. function overloads) are combined. Type information shown where possible"
]
},
"clangd.fallback-style": {
"type": [
"null",
"string"
],
"default": null,
"description": "clang-format style to apply by default when no .clang-format file is found"
},
"clangd.function-arg-placeholders": {
"type": [
"boolean",
"null"
],
"default": null,
"enum": [
null,
true,
false
],
"enumDescriptions": [
"use clangd default",
"completions also contain placeholders for method parameters",
"completions contain only parentheses for function calls"
]
},
"clangd.header-insertion": {
"type": [
"null",
"string"
],
"default": null,
"enum": [
null,
"iwyu",
"never"
],
"enumDescriptions": [
"Use the clangd default",
"Include what you use. Insert the owning header for top-level symbols, unless the header is already directly included or the symbol is forward-declared",
"Never insert #include directives as part of code completion"
]
},
"clangd.header-insertion-decorators": {
"type": [
"boolean",
"null"
],
"default": null,
"description": "Prepend a circular dot or space before the completion label, depending on whether an include line will be inserted or not"
},
"clangd.limit-references": {
"type": [
"null",
"integer"
],
"default": null,
"description": "Limit the number of references returned by clangd. 0 means no limit (clangd default=1000)",
"minimum": 0
},
"clangd.limit-results": {
"type": [
"null",
"integer"
],
"default": null,
"description": "Limit the number of results returned by clangd. 0 means no limit (clangd default=100)",
"minimum": 0
},
"clangd.project-root": {
"type": [
"null",
"string"
],
"default": null,
"description": "Path to the project root. Requires remote-index-address to be set"
},
"clangd.remote-index-address": {
"type": [
"null",
"string"
],
"default": null,
"description": "Address of the remote index server"
},
"clangd.number-workers": {
"type": [
"null",
"string"
],
"default": null,
"description": "Number of workers used for indexing and language server"
},
"clangd.malloc-trim": {
"type": [
"boolean",
"null"
],
"default": null,
"description": "Release memory periodically via malloc_trim(3)"
},
"clangd.pch-storage": {
"type": [
"null",
"string"
],
"default": null,
"description": "Sets the PCH storage. Storing PCHs in memory increases memory usages, but may improve performance",
"enum": [
null,
"disk",
"memory"
]
},
"clangd.enable-config": {
"type": [
"boolean",
"null"
],
"default": null,
"description": "Read user and project configuration from YAML files."
},
"clangd.log": {
"type": [
"null",
"string"
],
"default": null,
"description": "Sets the clangd log level",
"enum": [
null,
"error",
"info",
"verbose"
]
},
"clangd.path-mappings": {
"type": [
"null",
"string"
],
"default": null,
"description": "Translates between client paths (as seen by a remote editor) and server paths (where clangd sees files on disk)."
},
"clangd.pretty": {
"type": [
"boolean",
"null"
],
"default": null,
"description": "Pretty-print JSON output"
}
},
}
},
}
},
"allOf": [
{
"$ref": "sublime://settings/LSP-plugin-base"
},
{
"$ref": "sublime://settings/LSP-clangd#/definitions/PluginConfig"
}
]
}
},
{
"file_patterns": [
"/*.sublime-project"
],
"schema": {
"properties": {
"settings": {
"properties": {
"LSP": {
"properties": {
"clangd": {
"$ref": "sublime://settings/LSP-clangd#/definitions/PluginConfig"
}
}
}
}
}
}
}
}
]
}
}