nvim: Add --no-deep-clone to plugin updater
This commit is contained in:
parent
979af6dcac
commit
2b937175db
1 changed files with 2 additions and 2 deletions
|
@ -38,9 +38,9 @@ for plugin in "${plugin_array[@]}"; do
|
||||||
name="$(echo "$repo" | tr [.] '-')"
|
name="$(echo "$repo" | tr [.] '-')"
|
||||||
|
|
||||||
if [ -z "$branch" ]; then
|
if [ -z "$branch" ]; then
|
||||||
src="$(nix-prefetch-github --nix --fetch-submodules "$owner" "$repo" 2>/dev/null | tail -n +4)"
|
src="$(nix-prefetch-github --nix --fetch-submodules --no-deep-clone "$owner" "$repo" 2>/dev/null | tail -n +4)"
|
||||||
else
|
else
|
||||||
src="$(nix-prefetch-github --nix --fetch-submodules --rev "$branch" "$owner" "$repo" 2>/dev/null | tail -n +4)"
|
src="$(nix-prefetch-github --nix --fetch-submodules --no-deep-clone --rev "$branch" "$owner" "$repo" 2>/dev/null | tail -n +4)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rev="$(echo "$src" | grep rev | cut -d '"' -f 2)"
|
rev="$(echo "$src" | grep rev | cut -d '"' -f 2)"
|
||||||
|
|
Loading…
Reference in a new issue