1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-07-04 15:49:25 +00:00

[neovim] Update plugins

This commit is contained in:
2022-10-14 21:06:10 +02:00
parent 2fc006ba85
commit a0a449b7a0
2 changed files with 8 additions and 8 deletions

View File

@ -36,7 +36,7 @@ function check_update() {
update=${1:-"false"}
pushd "$HOME/.config/nvim/lua/user" > /dev/null || exit
grep -P "use.*commit" plugins.lua | cut -f 2,4 -d "\"" | while IFS= read -r line; do
grep -P "^\t*use.*commit" plugins.lua | cut -f 2,4 -d "\"" | while IFS= read -r line; do
plugin=$(echo "$line" | cut -f1 -d "\"" | cut -f2 -d "/")
current_commit=$(echo "$line" | cut -f2 -d "\"")
check_update "$plugin" "$current_commit" "$update"