Commit 7ee8aa80 authored by linsui's avatar linsui Committed by Matthieu Coudron
Browse files

neovimUtils: only set packpath/rtp as needed

... when there are plugins
parent 5dcdfd4b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -107,6 +107,7 @@ 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}"
          ];