-
Notifications
You must be signed in to change notification settings - Fork 10
/
LSP-json.sublime-settings
61 lines (61 loc) · 1.77 KB
/
LSP-json.sublime-settings
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
{
// Open "Preferences: LSP Utils Settings" from the Command Palette to customize the Node runtime.
"command": ["${node_bin}", "${server_path}", "--stdio"],
"schemes": [
// regular files
"file",
// in-memory buffers
"buffer",
// sublime resource files that are not strictly on-disk
"res",
// set by yaml-language-server when a remote schema is opened
"json-schema"
],
// don't auto-complete in comments and after typing a ",", ":", "{" or "[", and after closing a string
"auto_complete_selector": "- comment - punctuation.separator - punctuation.definition.string.end - constant.character.escape - invalid.illegal - punctuation.section.mapping - punctuation.section.sequence",
"disabled_capabilities": {
// the trigger characters are too blunt, we'll specify auto_complete_selector manually
"completionProvider": {
"triggerCharacters": true
}
},
"initializationOptions": {
"customCapabilities.rangeFormatting.editLimit": 1000,
"handledSchemaProtocols": ["https", "http", "file"],
"provideFormatter": true,
},
"settings": {
"json.validate.enable": true,
"json.format.enable": true,
"json.resultLimit": 5000,
"json.jsonFoldingLimit": 5000,
"json.jsoncFoldingLimit": 5000,
"json.jsonColorDecoratorLimit": 5000,
"json.jsoncColorDecoratorLimit": 5000,
"jsonc.patterns": [
"buffer://*",
".babelrc",
".eslintrc",
".eslintrc.json",
".hintrc",
".jsfmtrc",
".jshintrc",
".jsonc",
".swcrc",
"/.ember-cli",
"/.vscode/*.json",
"/babel.config.json",
],
"userSchemas": [
// {
// "fileMatch": ["tasks/*.yaml"],
// "uri": "http://json.schemastore.org/ansible-stable-2.9"
// },
// {
// "fileMatch": ["some-file.json"],
// "uri": "file:///Users/me/some-schema.json"
// }
],
},
"selector": "source.json"
}