By zircote
Lua language server plugin for Claude Code with lua-language-server integration and automated hooks for linting and formatting
npx claudepluginhub zircote/lsp-marketplace --plugin lua-lspA Claude Code plugin providing comprehensive Lua development support through:
# Run the setup command (after installing the plugin)
/setup
Or manually:
# Install lua-language-server
brew install lua-language-server # macOS
# or download from https://github.com/LuaLS/lua-language-server/releases
# Install formatting and linting tools
cargo install stylua
luarocks install luacheck
The plugin configures lua-language-server for Claude Code via .lsp.json:
{
"lua": {
"command": "lua-language-server",
"args": [],
"extensionToLanguage": { ".lua": "lua" },
"transport": "stdio"
}
}
Capabilities:
All hooks run afterWrite and are configured in hooks/hooks.json.
| Hook | Trigger | Description |
|---|---|---|
lua-format-on-edit | **/*.lua | Auto-format with StyLua |
lua-lint-on-edit | **/*.lua | Lint with Luacheck |
lua-syntax-check | **/*.lua | Validate Lua syntax |
| Hook | Trigger | Description |
|---|---|---|
lua-todo-fixme | **/*.lua | Surface TODO/FIXME/XXX/HACK comments |
lua-complexity-check | **/*.lua | Detect high cyclomatic complexity |
| Tool | Installation | Purpose |
|---|---|---|
lua-language-server | brew install lua-language-server | LSP server |
lua | System package manager | Lua runtime |
| Tool | Installation | Purpose |
|---|---|---|
stylua | cargo install stylua | Code formatting |
luacheck | luarocks install luacheck | Linting |
| Tool | Installation | Purpose |
|---|---|---|
luarocks | System package manager | Package manager |
busted | luarocks install busted | Testing framework |
lua-lsp/
├── .claude-plugin/
│ └── plugin.json # Plugin metadata
├── .lsp.json # lua-language-server configuration
├── commands/
│ └── setup.md # /setup command
├── hooks/
│ ├── hooks.json # Hook definitions
│ └── scripts/
│ └── lua-hooks.sh
├── tests/
│ └── sample_test.lua # Test file
├── CLAUDE.md # Project instructions
└── README.md # This file
.lua files exist in projectlua-language-server --versioncat .lsp.jsonstylua --version.stylua.toml for custom configurationstylua --check .cat hooks/hooks.jsoncommand -v stylua)MIT
Qiushi Skill: methodology skills for AI agents guided by seeking truth from facts, with Claude Code, Cursor, OpenClaw, Codex, OpenCode, and Hermes guidance.
GDScript language server for Godot Engine