Update all: update dotfiles first, use lazy restore instead of sync

This commit is contained in:
Marko Korhonen 2023-12-04 10:14:51 +02:00
parent 8eed2f76b5
commit 468cc65e27
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890

View file

@ -170,13 +170,13 @@ passync() { pass git pull && pass git push && updatesecrets }
update() { update() {
all() { all() {
dotfiles
packages packages
{%@@ if profile == "Moria" @@%} {%@@ if profile == "Moria" @@%}
repo repo
docker-update docker-update
{%@@ endif @@%} {%@@ endif @@%}
plugins plugins
dotfiles
} }
packages() { packages() {
@ -195,7 +195,7 @@ update() {
plugins() { plugins() {
echo "Updating NeoVim plugins" echo "Updating NeoVim plugins"
nvim --headless -c "Lazy! sync" -c 'TSUpdateSync' -c 'MasonToolsUpdate' -c 'qa' nvim --headless -c "Lazy! restore" -c 'TSUpdateSync' -c 'MasonToolsUpdate' -c 'qa'
zinit self-update zinit self-update
zinit update -p zinit update -p
{%@@ if profile == "Moria" @@%} {%@@ if profile == "Moria" @@%}