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=6b882dd59def774ec233c6e7451a96eb7cc48a00;hb=3a40071593734bf02e987a076b6408095ecfad41;hpb=16d29e4242cfb095bdcd65a16fb3b4d4d0013240 diff --git a/lib/Devel/REPL/Plugin/CompletionDriver/INC.pm b/lib/Devel/REPL/Plugin/CompletionDriver/INC.pm index 6b882dd..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) = @_; @@ -115,3 +120,15 @@ around complete => sub { 1; +__END__ + +=head1 NAME + +Devel::REPL::Plugin::CompletionDriver::INC - Complete module names in use and require + +=head1 AUTHOR + +Shawn M Moore, C<< >> + +=cut +