diffview.nvim
diffview.nvim copied to clipboard
Display diff buffers scrolled down to the first change
On DiffviewFiles, I'm trying to display buffer A and B scrolled down to the first change on the file.
I have folding disabled. I'm trying to use this hook:
hooks = {
diff_buf_read = function(buffnr)
vim.api.nvim_buf_call(buffnr, function()
vim.cmd("normal! gg]czz")
end)
end
}
but it isn't working, what am I doing wrong?