# Install lua-language-server with Homebrew, apk, chocolatey, MacPorts, Nix, pacman, scoop, winget, zypper

Language Server for the Lua language. Version 3.18.2 via Homebrew; verified 2026-06-15.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

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

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: openSUSE Tumbleweed package metadata: lua-language-server from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Chocolatey (92%):

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

  Evidence: Chocolatey community package catalog: lua-language-server from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='9.4623995','rufus.portable'

- Scoop (92%):

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

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:lua-language-server
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/lua-language-server>
- **Version:** 3.18.2
- **Source summary:** Language Server for the Lua language
- **Homepage:** <https://luals.github.io>
- **Repository:** <https://github.com/LuaLS/lua-language-server>
- **Upstream docs:** <https://luals.github.io/wiki>
- **License:** MIT
- **Source archive:** <https://github.com/LuaLS/lua-language-server.git>
- **Last updated:** 2026-06-15T10:20:20-04:00
- **Generated:** 2026-07-09T07:20:21+00:00

## Executables

- lua-language-server (cli)
- lua-language-server (alias)

## Build dependencies

- ninja

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-09
- Package-manager version: 3.18.2
- Package-manager updated: 2026-06-15
- Local data: ok
- Upstream repository: https://github.com/LuaLS/lua-language-server
- info: No cached GitHub release or tag data was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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


## Security Notes

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

- **Geiger risk:** blue / medium
- 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
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** lua-language-server
- **Version Scheme:** 0
- **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

## Other Package-Manager Records

- 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.15.0-1.3: normalized package name match | openSUSE Tumbleweed package metadata: lua-language-server from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-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.4623995','rufus.portable'
- 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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [ninja](https://www.automicvault.com/pkg/brew/ninja/) - Build dependency declared by Homebrew.
- [emmylua_ls](https://www.automicvault.com/pkg/brew/emmylua-ls/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp, lua.
- [erlang-language-platform](https://www.automicvault.com/pkg/brew/erlang-language-platform/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp, static-analysis.
- [fennel-ls](https://www.automicvault.com/pkg/brew/fennel-ls/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp, lua.
- [python-lsp-server](https://www.automicvault.com/pkg/brew/python-lsp-server/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp, static-analysis.
- [solargraph](https://www.automicvault.com/pkg/brew/solargraph/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp, static-analysis.
- [ansible-language-server](https://www.automicvault.com/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/pkg/brew/bash-language-server/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.
- [clojure-lsp](https://www.automicvault.com/pkg/brew/clojure-lsp/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.

## Combined YAML source

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


## Sources

- 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
