From 7ee8aa8039163c53f30be582040098f4165d27c1 Mon Sep 17 00:00:00 2001 From: linsui Date: Sat, 18 Mar 2023 21:12:28 +0800 Subject: neovimUtils: only set packpath/rtp as needed ... when there are plugins --- pkgs/applications/editors/neovim/utils.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkgs/applications/editors/neovim/utils.nix') diff --git a/pkgs/applications/editors/neovim/utils.nix b/pkgs/applications/editors/neovim/utils.nix index 125fae66f7f7e..0f03866cc75fb 100644 --- a/pkgs/applications/editors/neovim/utils.nix +++ b/pkgs/applications/editors/neovim/utils.nix @@ -107,9 +107,10 @@ let # vim accepts a limited number of commands so we join them all flags = [ "--cmd" (lib.intersperse "|" hostProviderViml) + ] ++ lib.optionals (myVimPackage.start != [] || myVimPackage.opt != []) [ "--cmd" "set packpath^=${vimUtils.packDir packDirArgs}" "--cmd" "set rtp^=${vimUtils.packDir packDirArgs}" - ]; + ]; in [ "--inherit-argv0" "--add-flags" (lib.escapeShellArgs flags) -- cgit 1.4.1