mirror of
https://github.com/ribru17/ts_query_ls.git
synced 2025-12-23 05:36:52 +00:00
42 lines
No EOL
1.5 KiB
JSON
42 lines
No EOL
1.5 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"title": "Options",
|
|
"type": "object",
|
|
"properties": {
|
|
"language_retrieval_patterns": {
|
|
"description": "A list of patterns to aid the LSP in finding a language, given a file path. Patterns must have one capture group which represents the language name. Ordered from highest to lowest precedence.",
|
|
"default": [],
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"parser_aliases": {
|
|
"description": "A map of parser aliases.",
|
|
"default": {},
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"parser_install_directories": {
|
|
"description": "A list of strings representing directories to search for parsers, of the form `<lang>.(so|dll|dylib)` or `tree-sitter-<lang>.wasm`.\n\nSupports environment variable expansion of the form `${VAR}`.",
|
|
"default": [],
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"valid_captures": {
|
|
"description": "A map from query file name to valid captures. Valid captures are represented as a map from capture name (sans `@`) to a short (markdown format) description. Note that captures prefixed with an underscore are always permissible.",
|
|
"default": {},
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |