scalameta / metals-zed

Zed plugin for Metals
Apache License 2.0
56 stars 12 forks source link

Braces are not auto indented properly #12

Open razvbir opened 4 months ago

razvbir commented 4 months ago

I think braces became optional in scala3 but the auto indent seems to not be working properly.

image

Auto format fixes this when saving the file but I find this problem a little bit annoying.

tgodzik commented 4 months ago

For Metals in VS Code we actually have to specify the logic for indentation, maybe it's fairly similiar in Zed? Someone could take a look at other extensions and see how they handle it (I would assume some tree sitter magic would help :thinking: )

razvbir commented 4 months ago

I've found this PR that seems to be related