some docs

This commit is contained in:
sneakers-the-rat 2024-02-05 14:53:04 -08:00
parent 9be0ed534b
commit 847d53a3cc
No known key found for this signature in database
GPG Key ID: 6DCB96EF1E4D232D
2 changed files with 81 additions and 0 deletions

66
LSP-json.sublime-settings Normal file
View File

@ -0,0 +1,66 @@
{
"command": ["${node_bin}", "${server_path}", "--stdio"],
"schemes": [
"file",
"buffer",
"res",
"json-schema"
],
"auto_complete_selector": "- comment - punctuation.separator - punctuation.definition.string.end - constant.character.escape - invalid.illegal - punctuation.section.mapping - punctuation.section.sequence",
"disabled_capabilities": {
"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": [
],
},
"selector": "source.json",
"languages": [
{
"scopes": ["source.json"],
"syntaxes": [
"Packages/JavaScript/JSON.sublime-syntax",
"Packages/JSON/JSON.sublime-syntax",
"Packages/PackageDev/Package/Sublime Text Build System/Sublime Text Build System.sublime-syntax",
"Packages/PackageDev/Package/Sublime Text Color Scheme/Sublime Text Color Scheme.sublime-syntax",
"Packages/PackageDev/Package/Sublime Text Commands/Sublime Text Commands.sublime-syntax",
"Packages/PackageDev/Package/Sublime Text Completions/Sublime Text Completions.sublime-syntax",
"Packages/PackageDev/Package/Sublime Text Keymap/Sublime Text Keymap.sublime-syntax",
"Packages/PackageDev/Package/Sublime Text Macro/Sublime Text Macro.sublime-syntax",
"Packages/PackageDev/Package/Sublime Text Menu/Sublime Text Menu.sublime-syntax",
"Packages/PackageDev/Package/Sublime Text Mousemap/Sublime Text Mousemap.sublime-syntax",
"Packages/PackageDev/Package/Sublime Text Project/Sublime Text Project.sublime-syntax",
"Packages/PackageDev/Package/Sublime Text Settings/Sublime Text Settings.sublime-syntax",
"Packages/PackageDev/Package/Sublime Text Theme/Sublime Text Theme.sublime-syntax",
],
}
],
}

15
README.md Normal file
View File

@ -0,0 +1,15 @@
Collection of JSON schemas used for autocompletes and validation and whatnot in sublime.
- install https://github.com/sublimelsp/LSP-json
- run the `get.py` script to get/update the schemas
- edit the `LSP-json.sublime` file that matches the schema to the file
- #TODO automatically update and symlink the LSP-json.sublime-settings file
```json
{
"fileMatch": [
"/my-file.json"
],
"uri": "./my-file-schema.json",
}
```