Skip to content

Tree-sitter Query#

Server#

For more information about the LSP server, check ts-query-lsp.

Installation#

Debugger: Not available#

Available configurations#

lsp-ts-query-executable#

Type: string

Default: ts_query_ls

The ts-query-ls executable to use.

Leave as just the executable name to use the default behavior of finding the executable with variable exec-path.


lsp-ts-query-language-retrieval-patterns#

Type: (vector string)

Default: nil

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.


lsp-ts-query-parser-install-directories#

Type: (vector string)

Default: [/home/runner/.emacs.d/tree-sitter]

Where to look for parsers, of the form .(so|dll|dylib) or tree-sitter-.wasm.


lsp-ts-query-server-store-path#

Type: file

Default: ~/.emacs.d/.cache/lsp/ts-query/

The path to the file in which ts-query will be stored.



Last update: January 6, 2025