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 New Issue
Block a user