This commit is contained in:
2025-12-17 15:56:20 +00:00
parent c75404cd44
commit 1550dac942
2 changed files with 28 additions and 8 deletions

View File

@@ -1,13 +1,14 @@
{pkgs, ...}: { {pkgs, ...}: {
programs.nixvim.extraPlugins = [ programs.nixvim.extraPlugins = [
(pkgs.vimUtils.buildVimPlugin { (pkgs.vimUtils.buildVimPlugin {
name = "jj-diffconflicts"; name = "jj-diffconflicts";
src = pkgs.fetchFromGitHub { src =
owner = "rafikdraoui"; pkgs.fetchFromGitHub {
repo = "jj-diffconflicts"; owner = "rafikdraoui";
rev = "main"; repo = "jj-diffconflicts";
hash = "sha256-FXsLSYy+eli8VArUL8ZOiPtyOk4Q8TUYwobEefZPRII="; rev = "main";
}; hash = "sha256-FXsLSYy+eli8VArUL8ZOiPtyOk4Q8TUYwobEefZPRII=";
}) };
})
]; ];
} }

View File

@@ -18,6 +18,25 @@
disabled = true; disabled = true;
}; };
}; };
command = {
deslop = {
description = "Remove AI code slop";
template = ''
Check the diff against main/master, and remove all AI generated slop introduced in this branch.
Use jj if available, otherwise git.
This includes:
- Extra comments that a human wouldn't add or is inconsistent with the rest of the file
- Extra defensive checks or try/catch blocks that are abnormal for that area of the codebase (especially if called by trusted / validated codepaths)
- Casts to any to get around type issues
- Any other style that is inconsistent with the file
- Unnecessary emoji usage
Report at the end with only a 1-3 sentence summary of what you changed
'';
};
};
}; };
}; };
home.sessionVariables = { home.sessionVariables = {