From f31696bdcbe5399ccf1a8559d32e13716095967b Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Mon, 6 Nov 2023 16:07:25 +0100 Subject: [yadm+update] implementing lazy.nvim update routine --- .local/bin/update | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to '.local') diff --git a/.local/bin/update b/.local/bin/update index f49de9a..ebac9a5 100755 --- a/.local/bin/update +++ b/.local/bin/update @@ -1,7 +1,7 @@ #!/usr/bin/env python3 """ -nvim '+PlugUpdate' +nvim --headless "+Lazy! sync" sudo pacman -Syu rustup update aur sync -unr @@ -33,8 +33,8 @@ open(lock_file, 'a').close() try: commands_confirm = [ - lambda: log('Running `nvim \'+PlugUpdate\'`...'), - lambda: subprocess.run(['nvim', '+PlugUpdate']), + lambda: log('Running `nvim --headless \'+Lazy! sync\'`...'), + lambda: subprocess.run(['nvim', '--headless', '"+Lazy! sync"', '+qall']), lambda: log('Running `sudo pacman -Syu`...'), lambda: subprocess.run(['sudo', 'pacman', '-Syu']), lambda: log('Running `aur sync -unr`...'), @@ -46,8 +46,8 @@ try: lambda: subprocess.run(['aur', 'sync', '-unr']), lambda: log('Running `sudo pacman -Syu`...'), lambda: subprocess.run(['sudo', 'pacman', '-Syu', '--noconfirm']), - lambda: log('Running `nvim \'+PlugUpdate\'`...'), - lambda: subprocess.run(['nvim', '+PlugUpdate', '+qall']), + lambda: log('Running `nvim --headless \'+Lazy! sync\'`...'), + lambda: subprocess.run(['nvim', '--headless', '"+Lazy! sync"', '+qall']), ] if not args.noconfirm: -- cgit v1.2.3