feat(nvim): use diffview-nvim for diffs and merges

This commit is contained in:
Michael Mandl 2025-02-12 16:23:34 +01:00
parent 2cca40f5e8
commit fd14195ccd
Signed by: mandlm
GPG key ID: 088ED38F036C7AF2
2 changed files with 11 additions and 1 deletions

View file

@ -44,7 +44,8 @@
merge.ff = false;
merge.tool = "nvim";
mergetool.nvim.cmd = "nvim -f -c \"Gdiffsplit!\" \"$MERGED\"";
mergetool.nvim.cmd = "nvim -d $BASE $LOCAL $REMOTE $MERGED -c 'DiffviewOpen'";
mergetool.nvim.trustExitCode = false;
mergetool.prompt = false;
pager.difftool = true;

View file

@ -55,6 +55,7 @@
vim-flog
git-blame-nvim
nvim-web-devicons # used by diffview-nvim
diffview-nvim
# snippets
friendly-snippets
@ -175,6 +176,14 @@
require("local_firenvim")
require("CopilotChat").setup()
require("diffview").setup({
view = {
merge_tool = {
layout = "diff4_mixed",
disable_diagnostics = true,
}
}
})
'';
};
};