feat(nvim): add 'diffview.nvim'
check / lint (push) Successful in 15s

This commit is contained in:
2026-10-07 22:54:46 +02:00
parent 52a83d4744
commit a3124c8870
4 changed files with 52 additions and 0 deletions
@@ -0,0 +1,13 @@
require("diffview").setup({
keymaps = {
file_panel = {
["s"] = false, -- would conflict with "splits & navigation" keymaps
},
},
})
local map = vim.keymap.set
map("n", "<leader>gh", "<cmd>DiffviewFileHistory<cr>", { desc = "git history (repo)" })
map("n", "<leader>gf", "<cmd>DiffviewFileHistory %<cr>", { desc = "git history (file)" })
map("n", "<leader>gd", "<cmd>DiffviewOpen<cr>", { desc = "git diff" })