Skip to content

Commit

Permalink
lib/just: add update-lazy recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
tomodachi94 committed Jun 20, 2024
1 parent b21f7e7 commit 45caf1a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/just/dev.just
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,15 @@ update-all:
git add ./pkgs/flake.lock && git commit --amend --no-edit
fi
update-lazy:
#!/usr/bin/env sh
set -euxo pipefail
if [ -f $HOME/.config/nvim/lazy-lock.json ]; then
nvim --headless +"Lazy! update" +"qa"
else
echo "error: $HOME/.config/nvim/lazy-lock.json missing. Did you install with the instructions in /README.md?"
exit 1
fi
format:
treefmt --config-file ./lib/tooling-config/treefmt.toml --tree-root {{git_dir}}

0 comments on commit 45caf1a

Please sign in to comment.