IntelliJ IDEA and Rust Rover plugin for LUMOS schema language.
Write once in .lumos → Generate type-safe Rust + TypeScript for Solana
✅ File Type Recognition - .lumos files recognized and highlighted
✅ LSP Integration - Full language server protocol support
✅ Auto-Completion - Smart suggestions for types and attributes
✅ Real-Time Diagnostics - Instant error detection and validation
✅ Hover Documentation - Inline type and attribute documentation
✅ Multi-IDE Support - Works with IntelliJ IDEA, Rust Rover, and CLion
Install the LUMOS Language Server:
cargo install lumos-lspVerify installation:
lumos-lsp --version
# lumos-lsp 0.1.1Settings → Plugins → Marketplace → Search "LUMOS" → Install → Restart IDE
-
Download the latest
.zipfrom Releases -
Install:
Settings → Plugins → ⚙️ → Install Plugin from Disk Select: intellij-lumos-X.X.X.zip Restart IDE
- Open or create a
.lumosfile:
#[solana]
#[account]
struct Player {
wallet: PublicKey,
score: u64,
level: u16,
}-
Features activate automatically:
- ✅ Syntax highlighting
- ✅ Auto-completion (
Pub→PublicKey) - ✅ Error diagnostics (red squiggles)
- ✅ Hover information
-
Generate code:
lumos generate schema.lumos
| IDE | Version | Status |
|---|---|---|
| IntelliJ IDEA Community | 2024.1+ | ✅ Supported |
| IntelliJ IDEA Ultimate | 2024.1+ | ✅ Supported |
| Rust Rover | 2024.1+ | ✅ Supported |
| CLion | 2024.1+ | ✅ Supported |
The plugin automatically detects lumos-lsp in:
$CARGO_HOME/bin/lumos-lsp(default Cargo install location)- System PATH
Custom path (if needed):
Settings → Languages & Frameworks → Language Servers
→ Configure server manually: /path/to/lumos-lsp
# Clone repository
git clone https://github.com/getlumos/intellij-lumos.git
cd intellij-lumos
# Build plugin
./gradlew buildPlugin
# Output: build/distributions/intellij-lumos-0.1.0.zip./gradlew runIde./gradlew testSymptom: No auto-completion or diagnostics
Fix:
-
Verify LSP server is installed:
which lumos-lsp
-
If missing, install:
cargo install lumos-lsp
-
Check IDE logs:
Help → Show Log in Finder → Search for "lumos"
Symptom: Can't find LUMOS in plugins list
Fix:
- Ensure IDE version is 2024.1 or higher
- Install LSP4IJ dependency:
Settings → Plugins → Marketplace → Search "LSP4IJ" → Install - Restart IDE
Symptom: .lumos files open as plain text
Fix:
- Right-click
.lumosfile - Associate with File Type → LUMOS
- Restart IDE
Plugin Architecture:
┌─────────────────────────────────────┐
│ IntelliJ IDEA / Rust Rover │
│ │
│ ┌──────────────────────────────┐ │
│ │ LUMOS Plugin │ │
│ │ - File Type Registration │ │
│ │ - LSP Client (lsp4ij) │ │
│ │ - Icon Provider │ │
│ └──────────┬───────────────────┘ │
│ │ JSON-RPC (LSP) │
│ v │
│ ┌──────────────────────────────┐ │
│ │ lumos-lsp │ │
│ │ (Language Server) │ │
│ │ - Diagnostics │ │
│ │ - Completion │ │
│ │ - Hover │ │
│ └──────────────────────────────┘ │
└─────────────────────────────────────┘
Key Files:
LumosFileType.kt- File type registrationLumosLanguage.kt- Language definitionLumosLspServerDescriptor.kt- LSP client integrationplugin.xml- Plugin manifest
Contributions welcome! See CONTRIBUTING.md
- lumos - Core compiler and CLI
- lumos-lsp - Language Server (required dependency)
- vscode-lumos - VS Code extension
- docs-lumos - Official documentation
Dual-licensed under:
- Website: lumos-lang.org
- Documentation: docs.lumos-lang.org
- GitHub: github.com/getlumos
- Issues: github.com/getlumos/intellij-lumos/issues
Made with ❤️ by the LUMOS team