vim: even better diffs
This commit is contained in:
parent
bb9615c9d0
commit
f182c34557
|
@ -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)
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue