# 使用 Homebrew, MacPorts, Nix 安装 clojure-lsp

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

## 安装

```sh
sudo av install brew:clojure-lsp
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install clojure-lsp
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install clojure-lsp
```

  证据: MacPorts ports tree: devel/clojure-lsp/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#clojure-lsp
```

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

## 软件包事实

- **软件包键:** brew:clojure-lsp
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/clojure-lsp>
- **版本:** 2026.07.06-14.34.19
- **来源摘要:** Language Server (LSP) for Clojure
- **主页:** <https://clojure-lsp.io>
- **仓库:** <https://github.com/clojure-lsp/clojure-lsp>
- **上游文档:** <https://clojure-lsp.io/>
- **许可证:** MIT
- **源码归档:** <https://github.com/clojure-lsp/clojure-lsp/releases/download/2026.07.06-14.34.19/clojure-lsp-standalone.jar>
- **最后更新:** 2026-07-06T21:38:00Z
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- clojure-lsp (cli)
- clojure-lsp (别名)

## 依赖

- openjdk

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 2026.07.06-14.34.19
- 管理器更新时间: 2026-07-06
- 本地数据: OK
- 上游仓库: https://github.com/clojure-lsp/clojure-lsp
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

clojure-lsp is the Language Server Protocol implementation for Clojure and ClojureScript. It packages static analysis, editor navigation, refactoring, lint-backed diagnostics, formatting, semantic tokens, code lenses, and related commands behind the standard LSP interface.

### 项目历史

The official repository was created in March 2018, and its GitHub releases include early release tags beginning in April 2018. The README describes the project as a Clojure and ClojureScript language server that takes a Cursive-like static-analysis approach to editor tooling.

The project grew from editor integration into a broader tool surface: the official README says its goal is to bring editing tools to all editors and also expose functionality programmatically through a CLI and API.

### 采用历史

Adoption followed the editor ecosystem rather than a single IDE. The project README describes clojure-lsp as the base for clients such as Emacs lsp-mode, VSCode Calva, vim, and other editors.

The official installation docs document native binaries and distribution through a custom Homebrew tap, install script, Nix, Arch AUR, Scoop on Windows, and GitHub releases. The supplied input also lists brew, MacPorts, and Nix package-manager coverage.

The README records Clojurists Together sponsorship in Q3 2021 and Q1 2022, a useful signal that the project had become shared Clojure tooling infrastructure rather than a one-editor plugin.

### 使用方式

Users install the clojure-lsp executable and connect it through an editor language client. Official settings docs describe project config in .lsp/config.edn, global config under ~/.config/clojure-lsp/config.edn or $XDG_CONFIG_HOME/clojure-lsp/config.edn, initialization options from clients, and classpath-provided config.

The official feature docs cover definition and reference lookup, rename, completion, Java support, code actions, code lenses, formatting, signature help, semantic tokens, call hierarchy, test and project trees, and diagnostics.

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

clojure-lsp matters to package-manager users because it turns a language ecosystem feature into a standalone, editor-neutral executable. The official installation page emphasizes GraalVM native binaries for Linux, macOS, and Windows, with Homebrew, Nix, AUR, Scoop, and GitHub release paths.

For Clojure tooling maintainers, it is also a convergence point: the settings docs describe classpath scanning for deps.edn, project.clj, build.boot, shadow-cljs.edn, bb.edn, and squint.edn, making it a bridge across several Clojure project formats.

### 时间线

- 2018: GitHub repository created and early release tags published.
- 2021: Clojurists Together sponsored clojure-lsp during Q3.
- 2022: Clojurists Together sponsored clojure-lsp again during Q1.
- 2026: Latest checked GitHub release was 2026.05.05-12.58.26, published on 2026-05-05.

### Related projects

- Related Clojure tooling includes clj-kondo, which the settings docs say clojure-lsp uses for linting and analysis; editor clients such as Emacs lsp-mode, VSCode Calva, and vim integrations; and project tools including deps.edn, Leiningen, Boot, shadow-cljs, Babashka, and Squint.

### 来源

- <https://github.com/clojure-lsp/clojure-lsp#readme>
- <https://clojure-lsp.io/>
- <https://github.com/clojure-lsp/clojure-lsp/blob/master/docs/settings.md>
- <https://github.com/clojure-lsp/clojure-lsp/blob/master/docs/installation.md>
- <https://github.com/clojure-lsp/clojure-lsp/blob/master/docs/features.md>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: .lsp/config.edn, ~/.config/clojure-lsp/config.edn, $XDG_CONFIG_HOME/clojure-lsp/config.edn
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** clojure-lsp
- **Version Scheme:** 1
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Nix - clojure-lsp: normalized package name match | nixpkgs package indexes: pkgs/by-name/cl/clojure-lsp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - clojure-lsp: normalized package name match | MacPorts ports tree: devel/clojure-lsp/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [openjdk](https://www.automicvault.com/zh-hans/pkg/brew/openjdk/) - Runtime dependency declared by Homebrew.
- [ansible-language-server](https://www.automicvault.com/zh-hans/pkg/brew/ansible-language-server/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.
- [bash-language-server](https://www.automicvault.com/zh-hans/pkg/brew/bash-language-server/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.
- [codebook-lsp](https://www.automicvault.com/zh-hans/pkg/brew/codebook-lsp/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.
- [crystalline](https://www.automicvault.com/zh-hans/pkg/brew/crystalline/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.
- [ctags-lsp](https://www.automicvault.com/zh-hans/pkg/brew/ctags-lsp/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.
- [dhall-lsp-server](https://www.automicvault.com/zh-hans/pkg/brew/dhall-lsp-server/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.
- [docker-compose-langserver](https://www.automicvault.com/zh-hans/pkg/brew/docker-compose-langserver/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.
- [docker-language-server](https://www.automicvault.com/zh-hans/pkg/brew/docker-language-server/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.
- [erlang-language-platform](https://www.automicvault.com/zh-hans/pkg/brew/erlang-language-platform/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, developer, developer-tools, language, language-server.
- [jdtls](https://www.automicvault.com/zh-hans/pkg/brew/jdtls/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, developer, developer-tools, language, language-server.
- [ltex-ls-plus](https://www.automicvault.com/zh-hans/pkg/brew/ltex-ls-plus/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, developer, developer-tools, language, language-server.

## Combined YAML source

View the package source record on GitHub. [combined/clojure-lsp.yml](https://github.com/automic-vault/db/blob/main/combined/clojure-lsp.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
