use leptosfmt

This commit is contained in:
Adam 2024-08-14 21:04:56 -04:00
parent 76d5252e52
commit 1fd4375963
2 changed files with 4 additions and 1 deletions

View file

@ -212,7 +212,7 @@ require('lazy').setup({
lua = { 'stylua' }, lua = { 'stylua' },
markdown = { { 'prettierd', 'prettier' } }, markdown = { { 'prettierd', 'prettier' } },
python = { 'isort', 'black' }, python = { 'isort', 'black' },
rust = { 'rustywind', 'rustfmt' }, rust = { 'leptosfmt', 'rustfmt' },
scss = { { 'prettierd', 'prettier' } }, scss = { { 'prettierd', 'prettier' } },
sh = { 'shellharden', 'beautysh' }, sh = { 'shellharden', 'beautysh' },
toml = { 'taplo' }, toml = { 'taplo' },

View file

@ -62,6 +62,9 @@ if [ "$1" -ge 1 ]; then
if [ ! "$(command -v rustup)" ]; then if [ ! "$(command -v rustup)" ]; then
yay -S --needed --noconfirm rust yay -S --needed --noconfirm rust
if [ ! "$(command -v leptosfmt)" ]; then
cargo install leptosfmt
fi fi
fi fi