Skip to content
Kona

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.

Terminal window
# VS Code
code --install-extension ide-support/vscode-crema
# Cursor
cursor --install-extension ide-support/vscode-crema

Reload 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.

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.

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.jar

stdio transport, document selector language crema. See Language server for the protocol surface.

Terminal window
cd ide-support/vscode-crema && node scripts/sync-grammar.js

Canonical grammar sources remain in ide-support/crema/.