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; with lib;
let let
name = "<>"; name = "<name>";
cfg = config.<>.<>; cfg = config.<namespace>.<name>;
in in
{ {
options.<>.<> = { options.<namespace>.<name> = {
enable = mkEnableOption "Enable ${name}";<> enable = mkEnableOption "Enable ${name}";<more_options>
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
<> <finish>
}; };
} }
]], ]],
{ {
i(1), finish = i(0),
i(2), more_options = i(3),
rep(1), name = i(1),
rep(2), namespace = i(2),
rep(1), },
i(3), { repeat_duplicates = true }
i(0),
}
) )
), ),