Lua Language Server brings diagnostics, completion, go-to-definition, and related IDE features for Lua. It supports multiple Lua versions and installs into VS Code, Neovim, JetBrains, or the CLI.
Overview
Lua Language Server implements the Language Server Protocol for Lua development. It provides go-to-definition, find references, hover details, renaming, autocompletion, diagnostics, syntax checking, formatting, spell checking, plugins, and documentation generation, with annotations for documenting code.
The server supports Lua 5.1 through 5.5 and LuaJIT, and works with editor extensions such as Visual Studio Code's sumneko.lua, Neovim LSP setups, and the JetBrains SumnekoLua plugin. You can install binaries via package managers (Homebrew, Scoop, MacPorts, mise) or run ./bin/lua-language-server from a release.
Definition files for popular libraries can be added or reused from community stubs. The project website lists localized UI languages and notes that opt-in telemetry was removed in a past release.
Running the binary directly suits any LSP-capable client; a wrapper script is recommended when using symlinks so the working directory matches server expectations.
Key features
- Lua 5.1–5.5 and LuaJIT support
- Go-to-definition and find references
- Diagnostics and dynamic type checking
- Autocompletion and hover documentation
- Built-in formatting and spell check
- Custom plugins and annotation system
- Community and custom definition files
- Documentation export to Markdown and JSON
Use cases
- Lua IDE support in VS Code or Neovim
- Game or embedded scripting with typed hints
- Shared LSP backend for team editors
- Catch syntax and type issues before runtime
- Standardize formatting across a Lua codebase