writeLazyPluginDir: Avoid getName call on plugin before normalization.

This commit is contained in:
Kevin Baensch 2024-11-30 16:57:00 +01:00
parent 7e72334fec
commit bd20996cf1
Signed by: derped
GPG key ID: C0F1D326C7626543

View file

@ -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.