bram209 / leptosfmt

A formatter for the leptos view! macro
Apache License 2.0
274 stars 30 forks source link

README Neovim example to run leptosfmt on save #79

Closed chrisp60 closed 1 year ago

chrisp60 commented 1 year ago

Can PR a hacky autocommand if it would be useful

SnowdenWintermute commented 1 year ago

I wouldn't mind taking a look at such a command if you have one :)

bram209 commented 1 year ago

hi, feel free to submit a PR with some notes for fellow (neo)vim users ; )

bram209 commented 1 year ago

in #88 I implemented support for calling rustfmt. This enables you to configure rust analyzer to call leptosfmt instead of rustfmt and should work fine with LSP compatible editors.

I am closing this issue for now, but feel free to make a PR to add more options to the documentation of how leptosfmt may be used in combination with neovim (or other editors).