Skip to content

Commit 5d661e6

Browse files
committed
feat(options): better diffs
I suspect an underlying bug but resetting the default options for diffopt gives cleaner diffs. :
1 parent 0de0675 commit 5d661e6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nvim/lua/options.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,4 +184,10 @@ end
184184
-- Don't always keep splits the same size
185185
vim.o.equalalways = false
186186

187+
if vim.fn.has('nvim-0.12') == 1 then
188+
vim.o.diffopt = 'internal,filler,closeoff,inline:word,linematch:40'
189+
elseif vim.fn.has('nvim-0.11') == 1 then
190+
vim.o.diffopt = 'internal,filler,closeoff,linematch:40'
191+
end
192+
187193
-- vim: ts=2 sts=2 sw=2 et

0 commit comments

Comments
 (0)