Skip to content

Commit a8226b7

Browse files
authored
docs(readme): note diffchar.vim flag for character-level diff highlighting for deletions (#13)
1 parent 03c74bb commit a8226b7

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -627,13 +627,17 @@ end, { desc = 'Diff against main/master' })
627627
backgrounds for changed lines plus fine-grained highlights for the exact
628628
characters that differ.
629629
- diffchar.vim works with diffview out of the box. Install the plugin and open
630-
a diffno additional configuration is needed. You may want to disable
631-
diffchar's default keymaps (`<leader>g`, `<leader>p`) if they conflict with
632-
your mappings:
630+
a diffno additional configuration is needed. You may want to enable
631+
visual indicators next to deleted characters to get VSCode-style
632+
character-level diffs, or disable diffchar's default keymaps (`<leader>g`,
633+
`<leader>p`) if they conflict with your mappings:
633634
```lua
634635
{
635636
'rickhowe/diffchar.vim',
636637
config = function()
638+
-- Use bold/underline on adjacent chars instead of virtual blank columns.
639+
vim.g.DiffDelPosVisible = 1
640+
637641
-- Disable diffchar default keymaps.
638642
-- See: https://github.com/rickhowe/diffchar.vim/issues/21
639643
vim.cmd([[

0 commit comments

Comments
 (0)