Refactor
All checks were successful
/ check (push) Successful in 1m12s

This commit is contained in:
Oliver Davies 2025-05-06 19:00:00 +01:00
parent ed3d12bb5a
commit 6c782845a3

View file

@ -34,28 +34,26 @@ ls.add_snippets("nix", {
with lib;
let
name = "<>";
cfg = config.<>.<>;
name = "<name>";
cfg = config.<namespace>.<name>;
in
{
options.<>.<> = {
enable = mkEnableOption "Enable ${name}";<>
options.<namespace>.<name> = {
enable = mkEnableOption "Enable ${name}";<more_options>
};
config = mkIf cfg.enable {
<>
<finish>
};
}
]],
{
i(1),
i(2),
rep(1),
rep(2),
rep(1),
i(3),
i(0),
}
finish = i(0),
more_options = i(3),
name = i(1),
namespace = i(2),
},
{ repeat_duplicates = true }
)
),