diff --git a/neovim/config/plugins/codediff.lua b/neovim/config/plugins/codediff.lua index bda4744..9577d15 100644 --- a/neovim/config/plugins/codediff.lua +++ b/neovim/config/plugins/codediff.lua @@ -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; gc is here too so the -- same key that opened things from the g/diff group also shuts them.