Modern Lua development plugin providing powerful Lua language support for IntelliJ IDEA
Powered by the robust emmylua-analyzer-rust engine
- Smart Code Completion - Context-aware precise code suggestions
- Syntax Highlighting - Support for Lua 5.1/5.2/5.3/5.4 syntax
- Error Detection - Real-time syntax and semantic error reporting
- Code Navigation - Quick jump to definitions, find references
- Refactoring Support - Rename, extract variables and other refactoring operations
- EmmyLua Annotations Support - Complete type annotation system
- Debugger Integration - Built-in EmmyLua debugger
- Multi-platform Support - Full support for Windows, macOS, Linux
- Performance Optimization - High-performance language server based on Rust
- Open IntelliJ IDEA
- Go to File→Settings→Plugins
- Search for "EmmyLua2"
- Click Installto install the plugin
- Restart IDE
- Download the latest version from Releases
- In IntelliJ IDEA, go to File→Settings→Plugins
- Click the gear icon → Install Plugin from Disk...
- Select the downloaded plugin file
- Restart IDE
- File→- New→- Project
- Select Luaproject type
- Configure project settings
- Start writing Lua code!
---@class Player
---@field name string
---@field level number
local Player = {}
---Create new player
---@param name string Player name
---@param level number Player level
---@return Player
function Player:new(name, level)
    return setmetatable({
        name = name,
        level = level
    }, { __index = self })
end| IDE Version | Plugin Version | Status | 
|---|---|---|
| 2024.3+ | 0.8.x | ✅ Actively Supported | 
| 2025.2+ | 0.12.x | ✅ Actively Supported | 
We welcome contributions of all kinds! Please check the Contributing Guide to learn how to participate in the project.
- JDK 17+ - Recommended to use OpenJDK or Oracle JDK
- IntelliJ IDEA 2024.3+ - Ultimate or Community Edition
- Git - Version control tool
- 
Clone Repository git clone https://github.com/CppCXY/Intellij-EmmyLua2.git cd Intellij-EmmyLua2
- 
Import Project - Open the project with IntelliJ IDEA
- Wait for Gradle sync to complete
 
- 
Build Plugin ./gradlew buildPlugin 
- 
Run Development Environment ./gradlew runIde 
| Task | Description | 
|---|---|
| buildPlugin | Build plugin distribution package | 
| runIde | Run plugin in IDE sandbox | 
| test | Run test suite | 
| downloadEmmyLuaAnalyzer | Download Emmy Lua Analyzer | 
| installDependencies | Install all dependencies | 
| cleanDependencies | Clean downloaded dependencies | 
- emmylua-analyzer-rust - Core language analysis engine
- EmmyLuaDebugger - Debugger support
- LSP4IJ - LSP client implementation
This project is open source under the MIT License.
⭐ If this project helps you, please give us a Star!
Made with ❤️ by CppCXY