-
Hi, I've started to use Scala 3 and other than some syntax highlighting issues with tree-sitter, all seems to work aces! My only issue is that I have configured nvim to use metals to autoformat files on save, and when doing it for sbt files, it uses Scala 3 syntax that seems to break things. I don't know if there's something obvious that I'm missing. I can NOT autoformat .sbt files, but sometimes there are sbt files with .scala extension, which makes things a bit complicated. Any pointers/ideas would be appreciated! Thank you. Juan |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Ahh, this is a good catch. I can reproduce this with just triggering a format in a Scala 3 project when there is a Scala file in the
Which indeed will format the |
Beta Was this translation helpful? Give feedback.
-
Going to cross-post here as well - @reidrac you can ask Scalafmt to apply a different dialect in different files, see config in my comment: #4143 (comment) |
Beta Was this translation helpful? Give feedback.
Going to cross-post here as well - @reidrac you can ask Scalafmt to apply a different dialect in different files, see config in my comment: #4143 (comment)