pet: don't create file without snippets
(cherry picked from commit 15d94f3058
)
This commit is contained in:
parent
32c336c767
commit
3c3af4bbff
|
@ -99,8 +99,9 @@ in {
|
|||
else {
|
||||
General = cfg.settings;
|
||||
});
|
||||
"pet/snippet.toml".source =
|
||||
format.generate "snippet.toml" { snippets = cfg.snippets; };
|
||||
"pet/snippet.toml" = mkIf (cfg.snippets != [ ]) {
|
||||
source = format.generate "snippet.toml" { snippets = cfg.snippets; };
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue