mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-09 13:43:50 +00:00
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:
parent
1c4acc409e
commit
b8581496df
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user