mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 13:23:52 -05:00
In order for these checks to work, :filetype on must be invoked *after* Fugitive is loaded. Otherwise, the FileType event triggers before FugitiveDetect() is called. These file types are used almost exclusively inside of Git repositories, and in the rare case they are not, we're not doing anything particularly intrusive, so dropping the conditional should have little practical impact. An exception is fugitive#MapJumps(), which is designed to be used exclusively with historical buffers, the status buffer, and captured :Git output, so let's lock it down to those particular workflows.