fix: always attach for configured filetypes #217
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/diffs.nvim!217
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/always-attach"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
FileTypeautocmd previously bailed out forft=gitbuffers unless they were fugitive (fugitive://URI orb:git_dirset) or committia (__committia_diff__$name). This blocked highlighting on every other legitimateft=gitsource: scratch preview buffers from pickers (fzf-lua, telescope, snacks), pipedgit show/git logoutput, and any:setf gitbuffer.Removing the bailout makes attach unconditional for every filetype returned by
compute_filetypes. Non-diff buffers parse to zero hunks and produce no extmarks, so the cost on.git/HEAD, refs, and similar small files is negligible.is_fugitive_bufferandget_committia_configremain as public API for any external consumer; they're just no longer used internally to gate attach.Vimdoc updated for the three sites that documented the old gate (
extra_filetypes,attach(), IMPLEMENTATION).