From 295948f40fea63cc7de2f37693dbda16d49ddeb1 Mon Sep 17 00:00:00 2001 From: Matthieu Coudron Date: Sun, 1 Nov 2020 18:50:37 +0100 Subject: [PATCH] neovim: dont wrap when is null restore previous behavior --- pkgs/applications/editors/neovim/utils.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/editors/neovim/utils.nix b/pkgs/applications/editors/neovim/utils.nix index 15d3f214057f..d3af8ca5d59a 100644 --- a/pkgs/applications/editors/neovim/utils.nix +++ b/pkgs/applications/editors/neovim/utils.nix @@ -148,8 +148,9 @@ let in wrapNeovimUnstable neovim (res // { wrapperArgs = lib.escapeShellArgs ( - res.wrapperArgs ++ [ "--add-flags" "-u ${writeText "init.vim" res.neovimRcContent}" ]) - + " " + extraMakeWrapperArgs + res.wrapperArgs ++ lib.optionals (configure != {}) [ + "--add-flags" "-u ${writeText "init.vim" res.neovimRcContent}" + ]) + " " + extraMakeWrapperArgs ; }); in