TreeSitterOptions
type TreeSitterOptions =
{
Grammars: TreeSitterGrammar list
RuntimePath: string option
RuntimeSource: string
UseBundledGrammars: bool
AutoBuild: bool
CliSource: string
WasiSdkSource: string
Browser: string list
}| Assembly | Nacara.Plugin.Highlight.TreeSitter |
Options of the tree-sitter highlighter.
Fields
Grammars: TreeSitterGrammar list
Grammars: TreeSitterGrammar listThe grammars to load, one per language.
RuntimePath: string option
RuntimePath: string optionWhere the two native libraries are: tree-sitter and wasmtime.
Left unset, they are fetched once into a cache under the user's profile - the pair for this platform, and no other. Set it to run against a build of your own, and nothing is downloaded.
RuntimeSource: string
RuntimeSource: stringWhere that pair is published, with {version} and {rid} in it.
Point it at a mirror for a build that cannot reach the npm registry.
UseBundledGrammars: bool
UseBundledGrammars: boolFall back to the grammars this package ships.
A language named in Grammars is used ahead of a shipped one, so a site overrides F# without giving up the rest.