vim: even better diffs

This commit is contained in:
Casper V. Kristensen 2024-08-07 00:29:16 +02:00
parent bb9615c9d0
commit f182c34557

View file

@ -75,7 +75,7 @@
-- Better diffs -- Better diffs
vim.opt.diffopt:append({"linematch:60", "algorithm:patience"}) vim.opt.diffopt:append({"linematch:60", "algorithm:patience"})
vim.opt.fillchars:append({ diff = " " }) vim.opt.fillchars:append({ diff = "" })
-- Show search-replace preview live -- Show search-replace preview live
vim.opt.inccommand = "split" vim.opt.inccommand = "split"
@ -658,6 +658,9 @@
lua lua
*/ */
'' ''
require("diffview").setup({
enhanced_diff_hl = true,
})
vim.keymap.set("n", "<Leader>gd", vim.cmd.DiffviewOpen) vim.keymap.set("n", "<Leader>gd", vim.cmd.DiffviewOpen)
''; '';
} }