Scala
Zed 中对 Scala 语言的支持由社区维护的 Scala 扩展提供。请将问题报告至: https://github.com/scalameta/metals-zed/issues
- Tree-sitter: tree-sitter/tree-sitter-scala
- 语言服务器: scalameta/metals
设置
- 使用
cs setup(Coursier) 安装 Scala: https://scala-lang.org.cn/download/brew install coursier/formulas/coursier && cs setup
- REPL (Almond) 设置说明 https://almond.sh/docs/quick-start-install
brew install --cask temurin(Eclipse 基金会官方 OpenJDK 二进制文件)brew install coursier/formulas/coursier && cs setupcoursier launch --use-bootstrap almond -- --install
配置
Metals 语言服务器的行为可以通过以下文件控制
.scalafix.conf文件 - 参阅 Scalafix 配置.scalafmt.conf文件 - 参阅 Scalafmt 配置
您可以将这些文件放置在项目的根目录中,或在 Metals 配置中指定其位置。更多信息请参阅 Metals 用户配置。