dhruvasagar / vim-prosession

Handle vim sessions like a pro
254 stars 22 forks source link

Move command completion function to autoload file #17

Closed leonidborisenko closed 9 years ago

leonidborisenko commented 9 years ago

This PR moves completion function of Prosession command's arguments to autoload file for being able to use it in NeoBundle lazy loaded plugin declaration.

NeoBundle provides a way to lazy load plugin on invoking its' command in which command completion could be also handled by NeoBundle (before plugin will be loaded). customlist completion is supported, but only if completion function is accessible.

Script-local function is not accessible by definition, but autoloadable function could be used by NeoBundle.

dhruvasagar commented 9 years ago

Cool, thanks for contributing!