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%2FKeywords.pm;h=1178e8f3a4806fbee1f81fa2a9fd35f5c5de25be;hp=a897eca2cdffd769afd4e0ddc92856f0ac7b58dd;hb=3a40071593734bf02e987a076b6408095ecfad41;hpb=873d8203272a4fc329d5ec1f17d52f67a2993ebb diff --git a/lib/Devel/REPL/Plugin/CompletionDriver/Keywords.pm b/lib/Devel/REPL/Plugin/CompletionDriver/Keywords.pm index a897eca..1178e8f 100644 --- a/lib/Devel/REPL/Plugin/CompletionDriver/Keywords.pm +++ b/lib/Devel/REPL/Plugin/CompletionDriver/Keywords.pm @@ -3,6 +3,11 @@ use Devel::REPL::Plugin; use B::Keywords qw/@Functions @Barewords/; 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) = @_; @@ -26,3 +31,15 @@ around complete => sub { 1; +__END__ + +=head1 NAME + +Devel::REPL::Plugin::CompletionDriver::Keywords - Complete Perl keywords and operators + +=head1 AUTHOR + +Shawn M Moore, C<< >> + +=cut +