Experiment with pet for snippets

https://github.com/knqyf263/pet

Seen on https://youtu.be/fU8HB1cvG9w?si=-lPdL1csAB_4D6tL&t=653.
This commit is contained in:
Oliver Davies 2024-08-13 12:00:00 +01:00
parent 95f6620c47
commit 9f860ee6f2
2 changed files with 25 additions and 0 deletions

View file

@ -23,6 +23,7 @@ in
./modules/direnv.nix
./modules/fzf.nix
./modules/lsd.nix
./modules/pet.nix
./modules/phpactor.nix
./modules/ripgrep.nix
./modules/syncthing.nix

View file

@ -0,0 +1,24 @@
{
programs.pet = {
enable = true;
snippets = [
{
command = "nix flake lock --update-input <input-name>";
description = "Display a log of a Git repository, showing each commit on its own line.";
output = "";
tag = [ "git" ];
}
{
command = "nix flake lock --update-input opdavies-nvim";
description = "Update a single input within a Nix flake.";
output = "";
tag = [
"nix"
"nix-flake"
];
}
];
};
}