Skip to content

Prelude Scala

Note

This module builds on top of the shared Programming module and the LSP module.

Scala Mode

This module bundles scala-mode for editing Scala source files, with LSP integration enabled by default.

The module enables:

  • subword-mode for CamelCase aware editing
  • lsp-mode for IDE-like features via Metals (the Scala language server)

Prerequisites

You need to install Metals for LSP support. The easiest way is via Coursier:

cs install metals

Make sure the metals binary is in your $PATH.

Key Bindings

See the LSP module for the available LSP key bindings. Run C-h m in a Scala buffer for all key bindings.