From b8581496dfb668d839e879c8e17393d44b726887 Mon Sep 17 00:00:00 2001 From: Reinis Taukulis Date: Mon, 16 Sep 2024 11:37:19 +0300 Subject: [PATCH] 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. --- .../editors/vim/plugins/neovim-require-check-hook.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/editors/vim/plugins/neovim-require-check-hook.sh b/pkgs/applications/editors/vim/plugins/neovim-require-check-hook.sh index e901e4fd2774..c207a58e4f49 100644 --- a/pkgs/applications/editors/vim/plugins/neovim-require-check-hook.sh +++ b/pkgs/applications/editors/vim/plugins/neovim-require-check-hook.sh @@ -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 }