diff --git a/pkgs/lazyUtils.nix b/pkgs/lazyUtils.nix index 56cba90..4b9dd22 100644 --- a/pkgs/lazyUtils.nix +++ b/pkgs/lazyUtils.nix @@ -181,10 +181,10 @@ rec { writeLazyPluginDir = plugin: let - # normalie plugin file name - name = lib.replaceStrings [ "." ] [ "-" ] (helpers.getName (helpers.pluginWrapper plugin)); + normalizedPlugin = helpers.pluginNormalize plugin; + name = lib.replaceStrings [ "." ] [ "-" ] normalizedPlugin.name; in - luaUtils.writeLuaFileDir "lua/lazyWrapper/plugins/${name}" (lazyPluginFile plugin); + luaUtils.writeLuaFileDir "lua/lazyWrapper/plugins/${name}" ''return ${luaUtils.setToLua normalizedPlugin}''; /** Builds and configures the lazy plugin directory.