modules/files: format files submodule output

Instead of `pkgs.writeText`, use `helpest.writeLua` to ensure the file
is formatted with stylua.
This commit is contained in:
Matt Sturgeon 2024-07-07 16:44:17 +01:00
parent f11f991e09
commit a6cc4c6c33
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -2,7 +2,7 @@
name,
config,
lib,
pkgs,
helpers,
...
}:
{
@ -22,6 +22,6 @@
path = lib.mkDefault name;
type = lib.mkDefault (if lib.hasSuffix ".vim" name then "vim" else "lua");
# No need to use mkDerivedConfig; this option is readOnly.
plugin = pkgs.writeText derivationName config.content;
plugin = helpers.writeLua derivationName config.content;
};
}