Skip to main content
plugin official · Anthropic

lua-lsp — Claude Code plugin: Lua language server

Wires the Lua language server into Claude so the agent gets code intelligence and diagnostics for .lua files.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin install lua-lsp@claude-plugins-official
/plugin marketplace add anthropics/claude-plugins-official
Open on GitHub

What lua-lsp does

This plugin connects Claude to the Lua language server. Your agent sees diagnostics and code intelligence for files ending in .lua, so edits to Lua scripts are based on an actual parse of the code rather than guesswork.

The server itself is not bundled. Install it first: brew install lua-language-server on macOS, a distro package or the snap with --classic on Linux, or a prebuilt binary from the releases page. Without lua-language-server on the machine the plugin has nothing to talk to, so check that before you install it.

After that, add the plugin from the claude-plugins-official marketplace. No per-project setup is needed; the server picks up .lua files in your working directory on its own.

What it helps with

  • get diagnostics for .lua files while editing
  • read through an unfamiliar Lua script without running it
  • catch typos in function names before the game or service starts
  • edit Lua configs with syntax hints

Example prompts for the agent

  • check this .lua file and list every error
  • find unused variables in init.lua
  • explain what the function in config.lua does

How to install lua-lsp

Plugin marketplace

/plugin install lua-lsp@claude-plugins-official
/plugin marketplace add anthropics/claude-plugins-official

Step by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own

Questions about lua-lsp

How do I install lua-lsp in Claude?

Add the marketplace first: /plugin marketplace add anthropics/claude-plugins-official, then install the plugin: /plugin install lua-lsp@claude-plugins-official. The language server itself is separate — for example brew install lua-language-server.

What does lua-lsp do?

It connects the Lua language server to Claude, giving the agent diagnostics and code intelligence for .lua files.

Which file extensions does the plugin support?

.lua only.

Source text

lua-lsp · Apache-2.0
# lua-lsp

Lua language server for Claude Code, providing code intelligence and diagnostics.

## Supported Extensions
`.lua`

## Installation

### Via Homebrew (macOS)
```bash
brew install lua-language-server
```

### Via package manager (Linux)
```bash
# Ubuntu/Debian (via snap)
sudo snap install lua-language-server --classic

# Arch Linux
sudo pacman -S lua-language-server

# Fedora
sudo dnf install lua-language-server
```

### Manual Installation
Download pre-built binaries from the [releases page](https://github.com/LuaLS/lua-language-server/releases).

## More Information
- [Lua Language Server GitHub](https://github.com/LuaLS/lua-language-server)
- [Documentation](https://luals.github.io/)

© Anthropic · Apache-2.0 · anthropics/claude-plugins-official

Similar plugins

All plugins for Programming languages →

From the same set123

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor