From 1fd4375963733a463d8df641fbc141e0fa7ebd8a Mon Sep 17 00:00:00 2001 From: Adam <24621027+adoyle0@users.noreply.github.com> Date: Wed, 14 Aug 2024 21:04:56 -0400 Subject: [PATCH] use leptosfmt --- configs/nvim/lua/lazy-plugins.lua | 2 +- scripts/install_arch | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/configs/nvim/lua/lazy-plugins.lua b/configs/nvim/lua/lazy-plugins.lua index 7f26473..3176952 100644 --- a/configs/nvim/lua/lazy-plugins.lua +++ b/configs/nvim/lua/lazy-plugins.lua @@ -212,7 +212,7 @@ require('lazy').setup({ lua = { 'stylua' }, markdown = { { 'prettierd', 'prettier' } }, python = { 'isort', 'black' }, - rust = { 'rustywind', 'rustfmt' }, + rust = { 'leptosfmt', 'rustfmt' }, scss = { { 'prettierd', 'prettier' } }, sh = { 'shellharden', 'beautysh' }, toml = { 'taplo' }, diff --git a/scripts/install_arch b/scripts/install_arch index 4fae0c2..071766d 100755 --- a/scripts/install_arch +++ b/scripts/install_arch @@ -62,6 +62,9 @@ if [ "$1" -ge 1 ]; then if [ ! "$(command -v rustup)" ]; then yay -S --needed --noconfirm rust + + if [ ! "$(command -v leptosfmt)" ]; then + cargo install leptosfmt fi fi