vim-utils: create less symlinks

For every vim plugin, we create a symlink to every file in the top
directory. It should be enough to create a symlink to the vim plugin
directly.
This commit is contained in:
José Luis Lafuente 2021-11-08 21:02:31 +01:00 committed by Matthieu Coudron
parent d083ae6247
commit 8605fbd737

View File

@ -198,8 +198,8 @@ let
'';
linkVimlPlugin = plugin: packageName: dir: ''
mkdir -p $out/pack/${packageName}/${dir}/${lib.getName plugin}
ln -sf ${plugin}/${rtpPath}/* $out/pack/${packageName}/${dir}/${lib.getName plugin}
mkdir -p $out/pack/${packageName}/${dir}
ln -sf ${plugin}/${rtpPath} $out/pack/${packageName}/${dir}/${lib.getName plugin}
'';
link = pluginPath: if hasLuaModule pluginPath