about summary refs log tree commit diff
path: root/pkgs/applications/editors/neovim
diff options
context:
space:
mode:
authorMatthieu Coudron <mcoudron@hotmail.com>2022-07-27 01:10:57 +0200
committerMatthieu Coudron <mcoudron@hotmail.com>2022-08-09 12:01:32 +0200
commit5d38ae801aebda98d1729ff0f16f943a816e99f6 (patch)
tree4260e3b3e45d9616d546fcb3e65fa6fa1993aab9 /pkgs/applications/editors/neovim
parenteb051d99b04bf7b1b980a6d18807a3730ae12c88 (diff)
downloadnixlib-5d38ae801aebda98d1729ff0f16f943a816e99f6.tar
nixlib-5d38ae801aebda98d1729ff0f16f943a816e99f6.tar.gz
nixlib-5d38ae801aebda98d1729ff0f16f943a816e99f6.tar.bz2
nixlib-5d38ae801aebda98d1729ff0f16f943a816e99f6.tar.lz
nixlib-5d38ae801aebda98d1729ff0f16f943a816e99f6.tar.xz
nixlib-5d38ae801aebda98d1729ff0f16f943a816e99f6.tar.zst
nixlib-5d38ae801aebda98d1729ff0f16f943a816e99f6.zip
neovimUtils: merge host settings so that they use a single --cmd flag
vim is limited to 10 --cmd flags so using fewer is better
Diffstat (limited to 'pkgs/applications/editors/neovim')
-rw-r--r--pkgs/applications/editors/neovim/utils.nix8
1 files changed, 2 insertions, 6 deletions
diff --git a/pkgs/applications/editors/neovim/utils.nix b/pkgs/applications/editors/neovim/utils.nix
index 16b19f63d2d3..b72e758d26e1 100644
--- a/pkgs/applications/editors/neovim/utils.nix
+++ b/pkgs/applications/editors/neovim/utils.nix
@@ -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)