+4








eb3c4b0e46
Co-authored-by: Raunak Raj <nkray21111983@gmail.com> Co-authored-by: Thorsten Ball <mrnugget@gmail.com> Co-authored-by: Bennet <bennet@zed.dev> Co-authored-by: Marshall Bowers <elliott.codes@gmail.com> Co-authored-by: Joseph T Lyons <JosephTLyons@gmail.com> Co-authored-by: Mikayla <mikayla@zed.dev> Co-authored-by: Jason <jason@zed.dev> Co-authored-by: Antonio Scandurra <me@as-cii.com> Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com> Co-authored-by: Marshall <marshall@zed.dev> Co-authored-by: Nathan Sobo <nathan@zed.dev> Co-authored-by: Jason Mancuso <7891333+jvmncs@users.noreply.github.com> Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
30 lines
1.5 KiB
Markdown
30 lines
1.5 KiB
Markdown
# Scala
|
|
|
|
Scala language support in Zed is provided by the community-maintained [Scala extension](https://github.com/scalameta/metals-zed).
|
|
Report issues to: [https://github.com/scalameta/metals-zed/issues](https://github.com/scalameta/metals-zed/issues)
|
|
|
|
- Tree Sitter: [tree-sitter/tree-sitter-scala](https://github.com/tree-sitter/tree-sitter-scala)
|
|
- Language Server: [scalameta/metals](https://github.com/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 setup`
|
|
- `coursier launch --use-bootstrap almond -- --install`
|
|
|
|
## Configuration
|
|
|
|
Behavior of the Metals language server can be controlled with:
|
|
|
|
- `.scalafix.conf` file - See [Scalafix Configuration](https://scalacenter.github.io/scalafix/docs/users/configuration.html)
|
|
- `.scalafmt.conf` file - See [Scalafmt Configuration](https://scalameta.org/scalafmt/docs/configuration.html)
|
|
|
|
You can place these files in the root of your project or specifying their location in the Metals configuration. See [Metals User Configuration](https://scalameta.org/metals/docs/editors/user-configuration) for more.
|
|
|
|
<!--
|
|
TBD: Provide LSP configuration example for metals in Zed settings.json. metals.{javaHome,excludedPackages,customProjectRoot} etc.
|
|
-->
|