mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 20:39:04 +02:00
neovimUtils: only set packpath/rtp as needed
... when there are plugins
This commit is contained in:
parent
5dcdfd4b1c
commit
7ee8aa8039
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue