feat: update autocmds for git filetypes with fugiive:/// bufnames
This commit is contained in:
parent
e2a62a6aa5
commit
686b02b790
3 changed files with 9 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue