···5vimPluginGenTags() {
6 echo "Executing vimPluginGenTags"
78- target="$out/@rtpPath@/$pname"
9 mkdir -p $out/@rtpPath@
1011 # build help tags
···16 exit 1
17 fi
18 else
19- echo "No docs available"
20 fi
2122 if [ -n "$addonInfo" ]; then
···5vimPluginGenTags() {
6 echo "Executing vimPluginGenTags"
78+ target="$out/@rtpPath@"
9 mkdir -p $out/@rtpPath@
1011 # build help tags
···16 exit 1
17 fi
18 else
19+ echo "No docs available for $target"
20 fi
2122 if [ -n "$addonInfo" ]; then
+11-11
pkgs/misc/vim-plugins/vim-utils.nix
···187188 rtpPath = ".";
189190- nativeImpl = packages:
191- (let
0192 # dir is "start" or "opt"
193 linkLuaPlugin = plugin: packageName: dir: ''
194 mkdir -p $out/pack/${packageName}/${dir}/${plugin.pname}/lua
···205 then linkLuaPlugin pluginPath
206 else linkVimlPlugin pluginPath;
207208- packageLinks = (packageName: {start ? [], opt ? []}:
209 let
210 # `nativeImpl` expects packages to be derivations, not strings (as
211 # opposed to older implementations that have to maintain backwards
···230 ++ [
231 "mkdir -p $out/pack/${packageName}/start/__python3_dependencies"
232 "ln -s ${python3Env}/${python3Env.sitePackages} $out/pack/${packageName}/start/__python3_dependencies/python3"
233- ]
234- );
235- packDir = (packages:
236 stdenv.mkDerivation {
237 name = "vim-pack-dir";
238 src = ./.;
239 installPhase = lib.concatStringsSep "\n" (lib.flatten (lib.mapAttrsToList packageLinks packages));
240 preferLocalBuild = true;
241- }
242- );
243- in
244 ''
245 set packpath^=${packDir packages}
246 set runtimepath^=${packDir packages}
247- '');
248249 /* Generates a vimrc string
250···295 plugImpl =
296 (''
297 source ${vimPlugins.vim-plug.rtp}/plug.vim
298- call plug#begin('/dev/null')
299300 '' + (lib.concatMapStringsSep "\n" (pkg: "Plug '${pkg.rtp}'") plug.plugins) + ''
301
···187188 rtpPath = ".";
189190+ # Generates a packpath folder as expected by vim
191+ packDir = packages:
192+ let
193 # dir is "start" or "opt"
194 linkLuaPlugin = plugin: packageName: dir: ''
195 mkdir -p $out/pack/${packageName}/${dir}/${plugin.pname}/lua
···206 then linkLuaPlugin pluginPath
207 else linkVimlPlugin pluginPath;
208209+ packageLinks = packageName: {start ? [], opt ? []}:
210 let
211 # `nativeImpl` expects packages to be derivations, not strings (as
212 # opposed to older implementations that have to maintain backwards
···231 ++ [
232 "mkdir -p $out/pack/${packageName}/start/__python3_dependencies"
233 "ln -s ${python3Env}/${python3Env.sitePackages} $out/pack/${packageName}/start/__python3_dependencies/python3"
234+ ];
235+ in
0236 stdenv.mkDerivation {
237 name = "vim-pack-dir";
238 src = ./.;
239 installPhase = lib.concatStringsSep "\n" (lib.flatten (lib.mapAttrsToList packageLinks packages));
240 preferLocalBuild = true;
241+ };
242+243+ nativeImpl = packages:
244 ''
245 set packpath^=${packDir packages}
246 set runtimepath^=${packDir packages}
247+ '';
248249 /* Generates a vimrc string
250···295 plugImpl =
296 (''
297 source ${vimPlugins.vim-plug.rtp}/plug.vim
298+ silent! call plug#begin('/dev/null')
299300 '' + (lib.concatMapStringsSep "\n" (pkg: "Plug '${pkg.rtp}'") plug.plugins) + ''
301