feat: update autocmds for git filetypes with fugiive:/// bufnames

This commit is contained in:
Barrett Ruth 2026-02-02 16:46:58 -05:00
parent e2a62a6aa5
commit 686b02b790
3 changed files with 9 additions and 5 deletions

View file

@ -93,7 +93,7 @@ function M.parse_buffer(bufnr)
end
for i, line in ipairs(lines) do
local filename = line:match('^[MADRC%?!]%s+(.+)$')
local filename = line:match('^[MADRC%?!]%s+(.+)$') or line:match('^diff %-%-git a/.+ b/(.+)$')
if filename then
flush_hunk()
current_filename = filename