Buckets:
| export default { | |
| // NOTE: FOR markdown, javascript and typescript, we use the opentui built-in parsers | |
| // Warn: when taking queries from the nvim-treesitter repo, make sure to include the query dependencies as well | |
| // marked with for example `; inherits: ecma` at the top of the file. Just put the dependencies before the actual query. | |
| // ALSO: Some queries use breaking changes in the nvim-treesitter repo, that are not compatible with the (web-)tree-sitter parser. | |
| parsers: [ | |
| { | |
| filetype: "python", | |
| wasm: "https://github.com/tree-sitter/tree-sitter-python/releases/download/v0.23.6/tree-sitter-python.wasm", | |
| queries: { | |
| highlights: [ | |
| // NOTE: This nvim-treesitter query is currently broken, because the parser is not compatible with the query apparently. | |
| // it is using "except" nodes that the parser is complaining about, but it has been in the query for 3+ years. | |
| // Unclear. | |
| // "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/python/highlights.scm", | |
| "https://github.com/tree-sitter/tree-sitter-python/raw/refs/heads/master/queries/highlights.scm", | |
| ], | |
| locals: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/python/locals.scm", | |
| ], | |
| }, | |
| }, | |
| { | |
| filetype: "rust", | |
| wasm: "https://github.com/tree-sitter/tree-sitter-rust/releases/download/v0.24.0/tree-sitter-rust.wasm", | |
| queries: { | |
| highlights: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/rust/highlights.scm", | |
| ], | |
| locals: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/rust/locals.scm", | |
| ], | |
| }, | |
| }, | |
| { | |
| filetype: "go", | |
| wasm: "https://github.com/tree-sitter/tree-sitter-go/releases/download/v0.25.0/tree-sitter-go.wasm", | |
| queries: { | |
| highlights: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/go/highlights.scm", | |
| ], | |
| locals: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/go/locals.scm", | |
| ], | |
| }, | |
| }, | |
| { | |
| filetype: "cpp", | |
| wasm: "https://github.com/tree-sitter/tree-sitter-cpp/releases/download/v0.23.4/tree-sitter-cpp.wasm", | |
| queries: { | |
| highlights: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/cpp/highlights.scm", | |
| ], | |
| locals: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/cpp/locals.scm", | |
| ], | |
| }, | |
| }, | |
| { | |
| filetype: "csharp", | |
| wasm: "https://github.com/tree-sitter/tree-sitter-c-sharp/releases/download/v0.23.1/tree-sitter-c_sharp.wasm", | |
| queries: { | |
| highlights: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/c_sharp/highlights.scm", | |
| ], | |
| locals: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/c_sharp/locals.scm", | |
| ], | |
| }, | |
| }, | |
| { | |
| filetype: "bash", | |
| wasm: "https://github.com/tree-sitter/tree-sitter-bash/releases/download/v0.25.0/tree-sitter-bash.wasm", | |
| queries: { | |
| highlights: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/bash/highlights.scm", | |
| ], | |
| }, | |
| }, | |
| { | |
| filetype: "c", | |
| wasm: "https://github.com/tree-sitter/tree-sitter-c/releases/download/v0.24.1/tree-sitter-c.wasm", | |
| queries: { | |
| highlights: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/c/highlights.scm", | |
| ], | |
| locals: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/c/locals.scm", | |
| ], | |
| }, | |
| }, | |
| { | |
| filetype: "java", | |
| wasm: "https://github.com/tree-sitter/tree-sitter-java/releases/download/v0.23.5/tree-sitter-java.wasm", | |
| queries: { | |
| highlights: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/java/highlights.scm", | |
| ], | |
| locals: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/java/locals.scm", | |
| ], | |
| }, | |
| }, | |
| { | |
| filetype: "kotlin", | |
| wasm: "https://github.com/fwcd/tree-sitter-kotlin/releases/download/0.3.8/tree-sitter-kotlin.wasm", | |
| queries: { | |
| highlights: ["https://raw.githubusercontent.com/fwcd/tree-sitter-kotlin/0.3.8/queries/highlights.scm"], | |
| locals: ["https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/master/queries/kotlin/locals.scm"], | |
| }, | |
| }, | |
| { | |
| filetype: "ruby", | |
| wasm: "https://github.com/tree-sitter/tree-sitter-ruby/releases/download/v0.23.1/tree-sitter-ruby.wasm", | |
| queries: { | |
| highlights: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/ruby/highlights.scm", | |
| ], | |
| locals: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/ruby/locals.scm", | |
| ], | |
| }, | |
| }, | |
| { | |
| filetype: "php", | |
| wasm: "https://github.com/tree-sitter/tree-sitter-php/releases/download/v0.24.2/tree-sitter-php.wasm", | |
| queries: { | |
| highlights: [ | |
| // NOTE: This nvim-treesitter query is currently broken, because the parser is not compatible with the query apparently. | |
| // "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/php/highlights.scm", | |
| "https://github.com/tree-sitter/tree-sitter-php/raw/refs/heads/master/queries/highlights.scm", | |
| ], | |
| }, | |
| }, | |
| { | |
| filetype: "scala", | |
| wasm: "https://github.com/tree-sitter/tree-sitter-scala/releases/download/v0.24.0/tree-sitter-scala.wasm", | |
| queries: { | |
| highlights: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/scala/highlights.scm", | |
| ], | |
| }, | |
| }, | |
| { | |
| filetype: "html", | |
| wasm: "https://github.com/tree-sitter/tree-sitter-html/releases/download/v0.23.2/tree-sitter-html.wasm", | |
| queries: { | |
| highlights: [ | |
| // NOTE: This nvim-treesitter query is currently broken, because the parser is not compatible with the query apparently. | |
| // "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/html/highlights.scm", | |
| "https://github.com/tree-sitter/tree-sitter-html/raw/refs/heads/master/queries/highlights.scm", | |
| ], | |
| // TODO: Injections not working for some reason | |
| // injections: [ | |
| // "https://github.com/tree-sitter/tree-sitter-html/raw/refs/heads/master/queries/injections.scm", | |
| // ], | |
| }, | |
| // injectionMapping: { | |
| // nodeTypes: { | |
| // script_element: "javascript", | |
| // style_element: "css", | |
| // }, | |
| // infoStringMap: { | |
| // javascript: "javascript", | |
| // css: "css", | |
| // }, | |
| // }, | |
| }, | |
| { | |
| filetype: "vue", | |
| wasm: "https://github.com/anomalyco/tree-sitter-vue/releases/download/v0.1.2/tree-sitter-vue.wasm", | |
| queries: { | |
| highlights: [ | |
| "https://raw.githubusercontent.com/anomalyco/tree-sitter-vue/v0.1.2/queries/html_tags/highlights.scm", | |
| "https://raw.githubusercontent.com/anomalyco/tree-sitter-vue/v0.1.2/queries/vue/highlights.scm", | |
| ], | |
| }, | |
| }, | |
| { | |
| filetype: "hcl", | |
| wasm: "https://github.com/tree-sitter-grammars/tree-sitter-hcl/releases/download/v1.2.0/tree-sitter-hcl.wasm", | |
| queries: { | |
| highlights: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/master/queries/hcl/highlights.scm", | |
| ], | |
| }, | |
| }, | |
| { | |
| filetype: "json", | |
| wasm: "https://github.com/tree-sitter/tree-sitter-json/releases/download/v0.24.8/tree-sitter-json.wasm", | |
| queries: { | |
| highlights: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/json/highlights.scm", | |
| ], | |
| }, | |
| }, | |
| { | |
| filetype: "yaml", | |
| wasm: "https://github.com/tree-sitter-grammars/tree-sitter-yaml/releases/download/v0.7.2/tree-sitter-yaml.wasm", | |
| queries: { | |
| highlights: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/yaml/highlights.scm", | |
| ], | |
| }, | |
| }, | |
| { | |
| filetype: "haskell", | |
| wasm: "https://github.com/tree-sitter/tree-sitter-haskell/releases/download/v0.23.1/tree-sitter-haskell.wasm", | |
| queries: { | |
| highlights: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/haskell/highlights.scm", | |
| ], | |
| }, | |
| }, | |
| { | |
| filetype: "css", | |
| wasm: "https://github.com/tree-sitter/tree-sitter-css/releases/download/v0.25.0/tree-sitter-css.wasm", | |
| queries: { | |
| highlights: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/css/highlights.scm", | |
| ], | |
| }, | |
| }, | |
| { | |
| filetype: "julia", | |
| wasm: "https://github.com/tree-sitter/tree-sitter-julia/releases/download/v0.23.1/tree-sitter-julia.wasm", | |
| queries: { | |
| highlights: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/julia/highlights.scm", | |
| ], | |
| }, | |
| }, | |
| { | |
| filetype: "lua", | |
| wasm: "https://github.com/tree-sitter-grammars/tree-sitter-lua/releases/download/v0.5.0/tree-sitter-lua.wasm", | |
| queries: { | |
| highlights: [ | |
| "https://raw.githubusercontent.com/tree-sitter-grammars/tree-sitter-lua/v0.5.0/queries/highlights.scm", | |
| ], | |
| locals: ["https://raw.githubusercontent.com/tree-sitter-grammars/tree-sitter-lua/v0.5.0/queries/locals.scm"], | |
| }, | |
| }, | |
| { | |
| filetype: "ocaml", | |
| wasm: "https://github.com/tree-sitter/tree-sitter-ocaml/releases/download/v0.24.2/tree-sitter-ocaml.wasm", | |
| queries: { | |
| highlights: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/ocaml/highlights.scm", | |
| ], | |
| }, | |
| }, | |
| { | |
| filetype: "clojure", | |
| // temporarily using fork to fix issues | |
| wasm: "https://github.com/anomalyco/tree-sitter-clojure/releases/download/v0.0.1/tree-sitter-clojure.wasm", | |
| queries: { | |
| highlights: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/clojure/highlights.scm", | |
| ], | |
| }, | |
| }, | |
| { | |
| filetype: "swift", | |
| wasm: "https://github.com/alex-pinkus/tree-sitter-swift/releases/download/0.7.1/tree-sitter-swift.wasm", | |
| queries: { | |
| highlights: [ | |
| // NOTE: Using parser repo queries instead of nvim-treesitter due to incompatible #lua-match? predicates | |
| // "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/highlights.scm | |
| "https://raw.githubusercontent.com/alex-pinkus/tree-sitter-swift/main/queries/highlights.scm", | |
| ], | |
| locals: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/swift/locals.scm", | |
| ], | |
| }, | |
| }, | |
| { | |
| filetype: "toml", | |
| wasm: "https://github.com/tree-sitter-grammars/tree-sitter-toml/releases/download/v0.7.0/tree-sitter-toml.wasm", | |
| queries: { | |
| highlights: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/master/queries/toml/highlights.scm", | |
| ], | |
| }, | |
| }, | |
| { | |
| filetype: "nix", | |
| // TODO: Replace with official tree-sitter-nix WASM when published | |
| // See: https://github.com/nix-community/tree-sitter-nix/issues/66 | |
| wasm: "https://github.com/ast-grep/ast-grep.github.io/raw/40b84530640aa83a0d34a20a2b0623d7b8e5ea97/website/public/parsers/tree-sitter-nix.wasm", | |
| queries: { | |
| highlights: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/nix/highlights.scm", | |
| ], | |
| locals: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/nix/locals.scm", | |
| ], | |
| }, | |
| }, | |
| { | |
| filetype: "diff", | |
| aliases: ["udiff", "patch"], | |
| wasm: "https://github.com/tree-sitter-grammars/tree-sitter-diff/releases/download/v0.1.0/tree-sitter-diff.wasm", | |
| queries: { | |
| highlights: [ | |
| "https://raw.githubusercontent.com/tree-sitter-grammars/tree-sitter-diff/master/queries/highlights.scm", | |
| ], | |
| }, | |
| }, | |
| { | |
| filetype: "elixir", | |
| wasm: "https://github.com/elixir-lang/tree-sitter-elixir/releases/download/v0.3.5/tree-sitter-elixir.wasm", | |
| queries: { | |
| highlights: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/elixir/highlights.scm", | |
| ], | |
| locals: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/elixir/locals.scm", | |
| ], | |
| }, | |
| }, | |
| { | |
| filetype: "fsharp", | |
| wasm: "https://github.com/ionide/tree-sitter-fsharp/releases/download/0.3.0/tree-sitter-fsharp.wasm", | |
| queries: { | |
| highlights: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/fsharp/highlights.scm", | |
| ], | |
| }, | |
| }, | |
| { | |
| filetype: "r", | |
| wasm: "https://github.com/r-lib/tree-sitter-r/releases/download/v1.2.0/tree-sitter-r.wasm", | |
| queries: { | |
| highlights: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/r/highlights.scm", | |
| ], | |
| locals: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/r/locals.scm", | |
| ], | |
| }, | |
| }, | |
| { | |
| filetype: "make", | |
| aliases: ["makefile"], | |
| wasm: "https://github.com/tree-sitter-grammars/tree-sitter-make/releases/download/v1.1.1/tree-sitter-make.wasm", | |
| queries: { | |
| highlights: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/make/highlights.scm", | |
| ], | |
| }, | |
| }, | |
| { | |
| filetype: "vim", | |
| wasm: "https://github.com/tree-sitter-grammars/tree-sitter-vim/releases/download/v0.8.1/tree-sitter-vim.wasm", | |
| queries: { | |
| highlights: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/vim/highlights.scm", | |
| ], | |
| locals: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/vim/locals.scm", | |
| ], | |
| }, | |
| }, | |
| { | |
| filetype: "xml", | |
| wasm: "https://github.com/tree-sitter-grammars/tree-sitter-xml/releases/download/v0.7.0/tree-sitter-xml.wasm", | |
| queries: { | |
| highlights: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/xml/highlights.scm", | |
| ], | |
| locals: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/xml/locals.scm", | |
| ], | |
| }, | |
| }, | |
| { | |
| filetype: "agda", | |
| wasm: "https://github.com/tree-sitter/tree-sitter-agda/releases/download/v1.3.3/tree-sitter-agda.wasm", | |
| queries: { | |
| highlights: [ | |
| "https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/agda/highlights.scm", | |
| ], | |
| }, | |
| }, | |
| ], | |
| } | |
Xet Storage Details
- Size:
- 16 kB
- Xet hash:
- 28b916ce8d3347b978f9bcdb6b51c3e157e9e49667af6625d0ba366d9df689ac
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.