vim: even better diffs
This commit is contained in:
parent
bb9615c9d0
commit
f182c34557
1 changed files with 4 additions and 1 deletions
|
@ -75,7 +75,7 @@
|
|||
|
||||
-- Better diffs
|
||||
vim.opt.diffopt:append({"linematch:60", "algorithm:patience"})
|
||||
vim.opt.fillchars:append({ diff = " " })
|
||||
vim.opt.fillchars:append({ diff = "╱" })
|
||||
|
||||
-- Show search-replace preview live
|
||||
vim.opt.inccommand = "split"
|
||||
|
@ -658,6 +658,9 @@
|
|||
lua
|
||||
*/
|
||||
''
|
||||
require("diffview").setup({
|
||||
enhanced_diff_hl = true,
|
||||
})
|
||||
vim.keymap.set("n", "<Leader>gd", vim.cmd.DiffviewOpen)
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue