diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-11-06 16:07:25 +0100 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-11-06 16:07:25 +0100 |
commit | f31696bdcbe5399ccf1a8559d32e13716095967b (patch) | |
tree | b40166636f37cb88fe00320451eb463e63ae1704 | |
parent | 99ae247eacf35697c607d880675d910fcce90ae3 (diff) |
[yadm+update] implementing lazy.nvim update routine
-rwxr-xr-x | .config/yadm/bootstrap | 9 | ||||
-rwxr-xr-x | .local/bin/update | 10 |
2 files changed, 6 insertions, 13 deletions
diff --git a/.config/yadm/bootstrap b/.config/yadm/bootstrap index 9be53e9..4ca1086 100755 --- a/.config/yadm/bootstrap +++ b/.config/yadm/bootstrap @@ -15,15 +15,8 @@ fi # vim # # -PLUG="$HOME/.local/share/nvim/site/autoload/plug.vim" - -if [ ! -f "$PLUG" ]; then - curl -fLo $PLUG --create-dirs \ - https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim -fi - if command -v nvim > /dev/null 2>&1; then - nvim '+PlugUpdate' '+PlugClean!' '+PlugUpdate' '+qall' + nvim --headless '+Lazy! sync' '+qall' fi 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: |