diffs.nvim/lua/diffs
Barrett Ruth 980bedc8a6 fix(parser): emit hunks for files with unknown filetypes
Previously, hunks were discarded entirely if vim.filetype.match()
returned nil. This meant files with unrecognized extensions got no
highlighting at all - not even the basic green/red backgrounds for
added/deleted lines.

Remove the (current_lang or current_ft) condition from flush_hunk()
so all hunks are collected. highlight_hunk() already handles the
case where ft/lang are nil by skipping syntax highlighting but still
applying background colors.

Co-authored-by: phanen <phanen@qq.com>
2026-02-04 23:51:15 -05:00
..
commands.lua fix(fugitive): handle renamed files correctly 2026-02-04 23:12:30 -05:00
fugitive.lua fix(fugitive): handle renamed files correctly 2026-02-04 23:12:30 -05:00
git.lua feat(git): add index and working tree content retrieval 2026-02-04 22:23:09 -05:00
health.lua feat: rename everything 2026-02-02 22:09:13 -05:00
highlight.lua feat: add :Gdiff, :Gvdiff, :Ghdiff commands for unified diff view 2026-02-04 19:52:17 -05:00
init.lua feat(fugitive): add status buffer keymaps for unified diffs 2026-02-04 22:23:21 -05:00
log.lua feat: add :Gdiff, :Gvdiff, :Ghdiff commands for unified diff view 2026-02-04 19:52:17 -05:00
parser.lua fix(parser): emit hunks for files with unknown filetypes 2026-02-04 23:51:15 -05:00