feat(git): support diffing bun lockfiles

This commit is contained in:
Michael Thomas 2023-12-08 11:36:21 -05:00
parent e0a99fd91e
commit 1a2071c596

View File

@ -24,6 +24,7 @@
extensions = ["rust-src"];
})
];
programs.zsh.initExtra = ''
export PATH=~/.npm-packages/bin:$PATH
export NODE_PATH=~/.npm-packages/lib/node_modules
@ -32,4 +33,15 @@
programs.direnv = {
enable = true;
};
# Bun Git config
programs.git = {
attributes = [
"*.lockb binary diff=lockb"
];
extraConfig = {
diff.lockb.textconv = "bun";
diff.lockb.binary = "true";
};
};
}