currently i'm typing
leptosfmt .
each time i want to format the html within the view!{} macro. I'd like to automate this on save or whenever rustfmt runs.
I tried adding a rustfmt section to my Zed settings.json, to support leptos, but it seemed to break formatting of my code. Anyone know the correct way to do this?
{
"telemetry": {
"diagnostics": false,
"metrics": false
},
"ui_font_size": 16,
"buffer_font_size": 16,
"autosave": "on_focus_change",
"lsp": {
"rust-analyzer": {
"procMacro": {
"ignored": [
// "component",
"server"
]
},
"rustfmt": {
"overrideCommand": ["leptosfmt", "--stdin", "--rustfmt"]
}
}
}
}