Open diffs inline and folded rather than side by side
Side-by-side splits each pane to about half a laptop's width, which is too narrow to read. Inline is GitHub's layout; compact folds the unchanged regions away, and the gutter signs replace the pane position as the cue for what changed. `t` and `gc` still toggle both per session. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
35e170b40c
commit
c78903d447
1 changed files with 7 additions and 0 deletions
|
|
@ -1,6 +1,13 @@
|
|||
vim.pack.add({ 'https://github.com/esmuellert/codediff.nvim' })
|
||||
|
||||
require('codediff').setup({
|
||||
diff = {
|
||||
-- Inline, GitHub-style: side-by-side is unreadable at laptop width. `t`
|
||||
-- toggles back per session, `gc` toggles the folding.
|
||||
layout = 'inline',
|
||||
compact = true,
|
||||
gutter_signs = true,
|
||||
},
|
||||
keymaps = {
|
||||
-- q closes the diff tab from inside it; <leader>gc is here too so the
|
||||
-- same key that opened things from the g/diff group also shuts them.
|
||||
|
|
|
|||
Loading…
Reference in a new issue