Rust analyzer not formatting occasionally
Here's my lsp configuration file.
Most functionality from the LSP is working, including "go to definition", "rename symbol", etc. However, formatting is not working :( What bothers me is that formatting does work if I open up a new project with cargo.
What could be causing this?
Thanks :)
Update : I realized that, in that specific project, if I have trailing spaces, lsp wouldn't format the file. However if I have leading spaces, it works fine. Any trailing spaces would stop the file being formatted at all...
Posted Feb 25, 2023, 7:30 PM UTC · edited
11