neovimRequireCheckHook: Fix dependency list

Only the first space in $dependencies was subsituted.

https://www.gnu.org/software/bash/manual/bash.html#Shell-Parameter-Expansion
> ${parameter/pattern/string}
> ${parameter//pattern/string}
> ${parameter/#pattern/string}
> ${parameter/%pattern/string}
>     ...
>     In the first form above, only the first match is replaced. If
>     there are two slashes separating parameter and pattern (the second form
>     above), all matches of pattern are replaced with string.
This commit is contained in:
Reinis Taukulis 2024-09-16 11:37:19 +03:00
parent 1c4acc409e
commit b8581496df

View File

@ -10,7 +10,7 @@ neovimRequireCheckHook () {
# editorconfig-checker-disable
export HOME="$TMPDIR"
@nvimBinary@ -es --headless -n -u NONE -i NONE --clean -V1 \
--cmd "set rtp+=$out,${dependencies/ /,}" \
--cmd "set rtp+=$out,${dependencies// /,}" \
--cmd "lua require('$nvimRequireCheck')"
fi
}