neovimUtils: merge host settings so that they use a single --cmd flag

vim is limited to 10 --cmd flags so using fewer is better
This commit is contained in:
Matthieu Coudron
2022-08-09 12:01:32 +02:00
parent eb051d99b0
commit 5d38ae801a
+2 -6
View File
@@ -102,12 +102,8 @@ let
let
binPath = lib.makeBinPath (lib.optionals withRuby [ rubyEnv ] ++ lib.optionals withNodeJs [ nodejs ]);
flags = lib.concatLists (lib.mapAttrsToList (
prog: withProg: [
"--cmd" (genProviderSettings prog withProg)
]
)
hostprog_check_table);
# vim accepts a limited number of commands so we join them all
flags = [ "--cmd" (lib.intersperse "|" (lib.mapAttrsToList genProviderSettings hostprog_check_table)) ];
in
[
"--inherit-argv0" "--add-flags" (lib.escapeShellArgs flags)