0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

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-07-27 01:10:57 +02:00
parent eb051d99b0
commit 5d38ae801a

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)