Language & editor support
Kona ships editor support for Crema templates so you can edit *.crema.html and *.crema.kt with highlighting, completion for directives, and warnings for unknown @names.
What you get
Section titled “What you get”| Piece | Location | Role |
|---|---|---|
| TextMate grammar | ide-support/crema/ |
Shared scopes for VS Code / Cursor |
| Language server | modules/lsp (org.konaframework:kona-lsp) |
Completions + diagnostics over LSP stdio |
| VS Code / Cursor extension | ide-support/vscode-crema/ |
Language contribution + setup help |
| IntelliJ native plugin | konaframework/kona-idea | Crema file type, @/view/DB completion, tool window, Grind (no LSP) |
Fastest path
Section titled “Fastest path”IntelliJ IDEA
Section titled “IntelliJ IDEA”Install the Kona Idea zip (Install Plugin from Disk…), restart, and open a *.crema.html view — language should read Crema. Details: IntelliJ.
VS Code / Cursor
Section titled “VS Code / Cursor”-
Open a Crema view with the VS Code extension (grammar from
ide-support/crema/). -
Build the language server once:
Terminal window ./gradlew :kona-lsp:jar -
Point the LSP client at:
Terminal window java -jar modules/lsp/build/libs/kona-lsp-*.jar
From an application project you can also print the same reminder without starting a server:
./grind ide:lspProgressive guides
Section titled “Progressive guides”- Crema grammar — what is highlighted and how to sync the TextMate files.
- Language server — protocol surface, Kotlin/Java usage in tests, running the jar.
- VS Code & Cursor — install the extension stub and wire
crema.lsp.jarPath. - IntelliJ — native Kona Idea plugin (no LSP; preferred for IntelliJ).
Crema template behavior itself (layouts, @foreach, stacks) is documented under Crema.