# 使用 Homebrew, Nix 安装 ts_query_ls

查看 ts_query_ls 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:ts_query_ls
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ts_query_ls
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#ts_query_ls
```

  证据: nixpkgs package indexes: pkgs/by-name/ts/ts_query_ls/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:ts_query_ls
- **软件包管理器:** Homebrew
- **版本:** 3.16.0
- **来源摘要:** LSP implementation for Tree-sitter's query files
- **主页:** <https://github.com/ribru17/ts_query_ls>
- **仓库:** <https://github.com/ribru17/ts_query_ls>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ts_query_ls (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 3.16.0
## 项目历史与用法

ts_query_ls is a language-server implementation for Tree-sitter query files. Its README documents configuration, diagnostics, formatting, CI checking, linting, profiling, editor setup, and Tree-sitter-specific query analysis.

### 项目历史

The project focuses on the tooling gap around .scm query files used by Tree-sitter grammars and editor integrations. Instead of being a general language server, it specializes in Tree-sitter query syntax, parser discovery, capture and predicate validation, query-module imports, and compatibility with query workspace layouts.

### 采用历史

GitHub release history shows an active 3.x line with contributors beyond the original author. Release notes mention Homebrew packaging documentation in v3.14.0, VS Code client support in v3.12.0, Neovim documentation updates in v3.16.0, and ongoing dependency updates for Tree-sitter.

### 使用方式

Users configure the server through initialization or a `.tsqueryrc.json` discovered in the workspace or ancestor directories. Outside editor LSP usage, the same binary can format query directories, run CI checks, lint captures and predicates without parser objects, and profile slow query patterns.

### 为什么软件包爱好者会关心

The package matters in a narrow but real developer-tools niche: people maintaining Tree-sitter grammars, Neovim queries, Zed queries, and editor runtime queries need validation before errors appear inside an editor or runtime. Packaging it for Homebrew and Nix makes that workflow available as a normal CLI rather than only as editor configuration.

### 时间线

- 2025: v3.12.0 release notes included bare-bones VS Code client support.
- 2025: v3.14.0 release notes documented Homebrew packaging and crates.io publishing work.
- 2026: v3.16.0 updated Neovim config docs, bumped Tree-sitter, and added a check option to ignore specific languages.

### Related projects

- ts_query_ls is built around Tree-sitter query files and related parser artifacts.
- It is adjacent to Neovim, VS Code, Zed, and other editor ecosystems that rely on Tree-sitter queries for highlighting, captures, injections, folds, and related language features.

### 来源

- <https://github.com/ribru17/ts_query_ls#readme>
- <https://github.com/ribru17/ts_query_ls/releases>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Nix - ts_query_ls: normalized package name match | nixpkgs package indexes: pkgs/by-name/ts/ts_query_ls/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/ts_query_ls.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ts_query_ls.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
