Closed gogamid closed 1 year ago
Hey @gogamid, so scalafmt support is indeed part of Metals. By default scalafmt requires you to have a .scalafmt.conf
file in order to know how to format your code. The pop up that you're seeing is Metals actually telling you that it can't find a config file. So you should be able to select the first option of creating the file, and then it should work as expected after that. We're actually discussing the behavior of this in https://github.com/scalameta/metals/pull/5559.
after creating it and putting these lines format the scala code:
version = "3.7.10"
runner.dialect = scala213
Thank you
Describe the bug
I thought scalafmt is builtin in nvim-metals, but when I format code, i get this error:
I use lazyvim
Configs: metals.lua
autocmd.lua
Expected behavior
No response
Operating system
macOS
Version of Metals
1.0.0
Commit of nvim-metals
57cff9a