mbadran/headlights

Some scripts not associated with parent script

Closed this issue · 1 comments

The syntastic script has multiple syntax checkers, which are being picked up as independent scripts/bundles. Instead, these should be associated with the syntastic bundle, and included in the same menu.

This happens because Headlights generates menus by script name, which is fine when you have one monolithic plugin directory with one file per script (the original Vim configuration). Now, with the advent of "bundles" and managers like Pathogen/Vundle, this should probably be more intelligent: if a script's path is a subdirectory of another script's path, and the parent path is not (.vim/plugin), then they should probably be combined.

This also applies to other bundle components such as colorschemes, filetypes, etc.

Headlights can identify associated bundles if they share a common path, but this requires some checks, and a 'parent' field will probably have to be added to bundles. This may impact performance, and it should be optional.