# 使用 Homebrew, apk, chocolatey, MacPorts, Nix, pacman, zypper, scoop, winget 安装 lua-language-server

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

## 安装

```sh
sudo av install brew:lua-language-server
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install lua-language-server
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install lua-language-server
```

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

### Linux

- apk (92%):

```sh
sudo apk add lua-language-server
```

  证据: Alpine Linux edge package indexes: lua-language-server from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#lua-language-server
```

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

- pacman (92%):

```sh
sudo pacman -S lua-language-server
```

  证据: Arch Linux sync databases: lua-language-server from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install lua-language-server
```

  证据: openSUSE Tumbleweed package metadata: lua-language-server from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install lua-language-server
```

  证据: Chocolatey community package catalog: lua-language-server from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='9.4028','coreinfo'

- Scoop (92%):

```sh
scoop install main/lua-language-server
```

  证据: Scoop official bucket manifest trees: bucket/lua-language-server.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id LuaLS.lua-language-server -e
```

  证据: Windows Package Manager source index: LuaLS.lua-language-server from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:lua-language-server
- **软件包管理器:** Homebrew
- **版本:** 3.18.2
- **来源摘要:** Language Server for the Lua language
- **主页:** <https://luals.github.io>
- **仓库:** <https://github.com/LuaLS/lua-language-server>
- **最后更新:** 2026-06-15T10:20:20-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- lua-language-server (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Lua Language Server, commonly branded LuaLS, is the Language Server Protocol implementation for Lua. It brings editor features such as diagnostics, completion, hover, go-to-definition, annotations, formatting, library definitions, and documentation generation to Lua projects.

### 项目历史

The project grew out of the VS Code extension historically published as sumneko.lua and evolved into the broader LuaLS project. The official LuaLS homepage describes it as a language server using the Language Server Protocol to make Lua development easier, safer, and faster in many editors, while the repository README links the language server to the website, changelog, wiki, issue tracker, and discussions.

LuaLS is tightly coupled to modern editor workflows rather than to the Lua runtime itself. Its feature set tracks practical IDE needs: support for Lua 5.1 through Lua 5.5 and LuaJIT, annotations, dynamic type checking, syntax diagnostics, workspace libraries, formatting, custom plugins, translations, and generated documentation.

### 采用历史

LuaLS adoption is visible through editor distribution. The official homepage shows Visual Studio Code install counts in the millions and gives install paths for VS Code, Neovim, JetBrains, and generic command-line/LSP clients. The supplied package-manager facts also show packaging across apk, Homebrew, Chocolatey, MacPorts, Nix, pacman, Scoop, winget, and zypper.

The package became the default answer for Lua editor support because it speaks LSP instead of being bound to one editor. That let package managers distribute the same lua-language-server executable for Neovim, VS Code-adjacent setups, terminal editors, and custom LSP clients.

### 使用方式

Users install the lua-language-server executable and point an LSP client at it. Configuration can come from an explicit --configpath, a workspace .luarc.json file, or settings sent by the LSP client. The official docs recommend .luarc.json for configuration shared across clients and show examples for VS Code, Neovim, coc.nvim, and Kakoune.

Typical package-manager usage is installing the binary into PATH and letting editor configuration discover it. Project teams add .luarc.json when they need shared runtime version, library paths, diagnostics settings, or hints.

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

LuaLS matters to package nerds because it is a language-tooling package whose value depends on editor integration, binary distribution, and fast updates to match new Lua versions. The formula is not just a compiler or interpreter; it is the piece that makes Lua feel modern inside editors and CI-adjacent code-quality workflows.

### 时间线

- 2022: The changelog records the 3.6.x series and removal of telemetry in v3.6.5.
- 2026: The official changelog records Lua 5.5-related fixes in the 3.18.x series.
- 2026: Official homepage reports multi-million Visual Studio Code installs and documents installation for VS Code, Neovim, JetBrains, and other LSP clients.

### Related projects

- Lua is the target language supported by LuaLS.
- Language Server Protocol is the editor protocol LuaLS implements.
- Neovim, VS Code, JetBrains IDEs, coc.nvim, and Kakoune are documented client environments.
- EmmyLua is listed by the project as related credit material for annotation-style Lua tooling.

### 来源

- <https://luals.github.io/>
- <https://luals.github.io/wiki/>
- <https://luals.github.io/wiki/configuration/>
- <https://raw.githubusercontent.com/LuaLS/lua-language-server/master/README.md>
- <https://raw.githubusercontent.com/LuaLS/lua-language-server/master/changelog.md>
- source_facts.package-manager


## 安全说明

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: .luarc.json
## 其他软件包管理器记录

- Nix - lua-language-server: normalized package name match | nixpkgs package indexes: pkgs/by-name/lu/lua-language-server/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - lua-language-server - 3.16.1-r1: normalized package name match | Alpine Linux edge package indexes: lua-language-server from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Language Server for Lua | https://github.com/LuaLS/lua-language-server
- apk - lua-language-server-doc - 3.16.1-r1: normalized package name match | Alpine Linux edge package indexes: lua-language-server-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Language Server for Lua (documentation) | https://github.com/LuaLS/lua-language-server
- pacman - lua-language-server - 3.18.2-1: normalized package name match | Arch Linux sync databases: lua-language-server from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Lua Language Server coded by Lua | https://luals.github.io
- zypper - lua-language-server - 3.18.2-1.2: normalized package name match | openSUSE Tumbleweed package metadata: lua-language-server from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Lua Language Server coded by Lua | https://github.com/LuaLS/lua-language-server
- MacPorts - lua-language-server: normalized package name match | MacPorts ports tree: lua/lua-language-server/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - lua-language-server: normalized package name match | Chocolatey community package catalog: lua-language-server from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='9.4028','coreinfo'
- Scoop - main/lua-language-server: normalized package name match | Scoop official bucket manifest trees: bucket/lua-language-server.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - LuaLS.lua-language-server: normalized package name match | Windows Package Manager source index: LuaLS.lua-language-server from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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


## 来源

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