nvim: support branch names for plugins
This commit is contained in:
parent
d3249da6da
commit
5289a424d0
2 changed files with 6 additions and 0 deletions
|
@ -60,5 +60,6 @@
|
||||||
- src: lewis6991/gitsigns.nvim
|
- src: lewis6991/gitsigns.nvim
|
||||||
- src: sindrets/diffview.nvim
|
- src: sindrets/diffview.nvim
|
||||||
- src: NeogitOrg/neogit
|
- src: NeogitOrg/neogit
|
||||||
|
branch: nightly
|
||||||
- src: j-hui/fidget.nvim
|
- src: j-hui/fidget.nvim
|
||||||
- src: folke/which-key.nvim
|
- src: folke/which-key.nvim
|
||||||
|
|
|
@ -49,6 +49,11 @@ for plugin in "${plugin_array[@]}"; do
|
||||||
nix_prefetch_flags+=" --fetch-submodules"
|
nix_prefetch_flags+=" --fetch-submodules"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
branch="$(echo "$plugin" | jq -r '.branch // empty')"
|
||||||
|
if [ -n "$branch" ]; then
|
||||||
|
nix_prefetch_flags+=" --rev refs/heads/$branch"
|
||||||
|
fi
|
||||||
|
|
||||||
rev="$(echo "$plugin" | jq -r '.rev // empty')"
|
rev="$(echo "$plugin" | jq -r '.rev // empty')"
|
||||||
if [ -n "$rev" ]; then
|
if [ -n "$rev" ]; then
|
||||||
nix_prefetch_flags+=" --rev $rev"
|
nix_prefetch_flags+=" --rev $rev"
|
||||||
|
|
Loading…
Reference in a new issue