VS Code & Cursor
The Crema (Kona) extension under ide-support/vscode-crema/ contributes the Crema language id, TextMate grammar, and settings keys for the language server jar.
Install for local development
Section titled “Install for local development”# VS Codecode --install-extension ide-support/vscode-crema
# Cursorcursor --install-extension ide-support/vscode-cremaReload the window, then open any *.crema.html file — highlighting should activate without further setup.
Command palette: Crema: Show kona-lsp setup help prints build/run lines to an output channel.
Settings
Section titled “Settings”| Setting | Default | Purpose |
|---|---|---|
crema.lsp.enabled |
true |
Reserved for clients that auto-start the server |
crema.lsp.javaPath |
java |
JDK launcher |
crema.lsp.jarPath |
"" |
Absolute path to the kona-lsp jar |
Example settings.json:
{ "crema.lsp.javaPath": "java", "crema.lsp.jarPath": "/home/you/kona/modules/lsp/build/libs/kona-lsp-0.1.0-SNAPSHOT.jar"}Build the jar first: ./gradlew :kona-lsp:jar.
Wiring a full LSP client
Section titled “Wiring a full LSP client”The stub extension registers language support and help; for live completion and diagnostics, configure an LSP client (for example vscode-languageclient) with:
java -jar /absolute/path/to/kona-lsp.jarstdio transport, document selector language crema. See Language server for the protocol surface.
Sync grammar after edits
Section titled “Sync grammar after edits”cd ide-support/vscode-crema && node scripts/sync-grammar.jsCanonical grammar sources remain in ide-support/crema/.