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() {
all() {
dotfiles
packages
{%@@ if profile == "Moria" @@%}
repo
docker-update
{%@@ endif @@%}
plugins
dotfiles
}
packages() {
@ -195,7 +195,7 @@ update() {
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 update -p
{%@@ if profile == "Moria" @@%}