Configuring Helix for scalafmt

I don't do much Scala anymore, but when I do I make use of Scalafmt so I don't have to care about all that stuff. 

In the Helix editor, to be able to run :fmt on a Scala file you need this in your ~/.config/helix/languages.toml file:

[[language]]
name = "scala"
formatter = { 
  command = "scalafmt", 
  args = ["--stdout", "--stdin"] 
}

Make sure you also have a .scalafmt.conf file in your project. 

With that in place, :fmt works in Helix.