X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FDevel-REPL.git;a=blobdiff_plain;f=lib%2FDevel%2FREPL%2FPlugin%2FCompletionDriver%2FINC.pm;h=2409a706d504852c6447a693d02454b64e75a5c1;hp=a47bc96c376400b67f40bd90d85efe9f05a9ae7d;hb=3a40071593734bf02e987a076b6408095ecfad41;hpb=cfd1094b45c394258ccda08216f1435bf40e1d50 diff --git a/lib/Devel/REPL/Plugin/CompletionDriver/INC.pm b/lib/Devel/REPL/Plugin/CompletionDriver/INC.pm index a47bc96..2409a70 100644 --- a/lib/Devel/REPL/Plugin/CompletionDriver/INC.pm +++ b/lib/Devel/REPL/Plugin/CompletionDriver/INC.pm @@ -4,6 +4,11 @@ use File::Next; use File::Spec; use namespace::clean -except => [ 'meta' ]; +sub BEFORE_PLUGIN { + my $self = shift; + $self->load_plugin('Completion'); +} + around complete => sub { my $orig = shift; my ($self, $text, $document) = @_; @@ -121,5 +126,9 @@ __END__ Devel::REPL::Plugin::CompletionDriver::INC - Complete module names in use and require +=head1 AUTHOR + +Shawn M Moore, C<< >> + =cut