Some bundles/files missing from menu
Closed this issue · 1 comments
When :scriptnames is run on startup, it doesn't reveal ftplugin files and their associated commands and mappings (and functions). This occurs with Pyflakes and snipmate, among others. The solution seems to be to implement dynamic menus, regenerating the entire menu each time a buffer is entered (performance needs to be fast for this).
Additionally, snipmate only has 2 files in the menu, leaving out autoload files, syntax files, snippets, and docs. Perhaps we need to look at the file system if Vim cannot deliver this information, but performance issues would need to be considered (hopefully reading multiple dir listings does not slow things down too much).
Menus are now generated dynamically each time a buffer is entered. The issue with this approach is that Headlights only knows what Vim knows, ie. what :scriptnames reveals at any given time. As such, autoload files, ftplugin files, etc will only be picked up by Headlights when they're picked up by Vim.
In the future, I might consider using supplementary information, for information, via &runtimepath, but this solution is Good Enough for now.