Rewrite product prose and local path/command examples across the docs to match the shipped application (gwen CLI, Gwen config paths, Gwen.app, com.yrkaierx.Gwen). Upstream distribution channels, service URLs and package identifiers stay factually intact.
1.6 KiB
1.6 KiB
title, description
| title | description |
|---|---|
| Scala | Configure Scala language support in Gwen, including language servers, formatting, and debugging. |
Scala
Scala language support in Gwen is provided by the community-maintained Scala extension. Report issues to: https://github.com/scalameta/metals-zed/issues
- Tree-sitter: tree-sitter/tree-sitter-scala
- Language Server: scalameta/metals
Setup
- Install Scala with
cs setup(Coursier): https://www.scala-lang.org/download/brew install coursier/formulas/coursier && cs setup
- REPL (Almond) Setup Instructions https://almond.sh/docs/quick-start-install
brew install --cask temurin(Eclipse foundation official OpenJDK binaries)brew install coursier/formulas/coursier && cs setupcoursier launch --use-bootstrap almond -- --install
Configuration
Behavior of the Metals language server can be controlled with:
.scalafix.conffile - See Scalafix Configuration.scalafmt.conffile - See Scalafmt Configuration
You can place these files in the root of your project or specify their location in the Metals configuration. See Metals User Configuration for more.