feat(git): use 'nvimdiff' as difftool
This commit is contained in:
@@ -80,6 +80,12 @@
|
|||||||
conflictstyle = diff3
|
conflictstyle = diff3
|
||||||
[diff]
|
[diff]
|
||||||
colorMoved = zebra
|
colorMoved = zebra
|
||||||
|
tool = nvimdiff
|
||||||
|
[difftool]
|
||||||
|
prompt = false
|
||||||
|
[mergetool]
|
||||||
|
prompt = false
|
||||||
|
keepBackup = false
|
||||||
[commit]
|
[commit]
|
||||||
gpgsign = false
|
gpgsign = false
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,12 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.git.enable {
|
config = lib.mkIf config.git.enable {
|
||||||
|
assertions = [
|
||||||
|
{
|
||||||
|
assertion = config.nvim.enable;
|
||||||
|
message = "git module requires 'nvim' module (`nvimdiff`)";
|
||||||
|
}
|
||||||
|
];
|
||||||
programs.git.enable = true;
|
programs.git.enable = true;
|
||||||
home.file = {
|
home.file = {
|
||||||
".gitconfig".source = dotsPath + "/.gitconfig";
|
".gitconfig".source = dotsPath + "/.gitconfig";
|
||||||
|
|||||||
Reference in New Issue
Block a user