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%2FGlobals.pm;h=9ce0674dbccf300e8e2dcf3578c8d2811a106812;hp=0671f08cd441aa0ccaa766a40ca5c48769d4ecd2;hb=75a08365ddd836a78f37d82b8d38c1642e7b20af;hpb=3a40071593734bf02e987a076b6408095ecfad41 diff --git a/lib/Devel/REPL/Plugin/CompletionDriver/Globals.pm b/lib/Devel/REPL/Plugin/CompletionDriver/Globals.pm index 0671f08..9ce0674 100644 --- a/lib/Devel/REPL/Plugin/CompletionDriver/Globals.pm +++ b/lib/Devel/REPL/Plugin/CompletionDriver/Globals.pm @@ -2,6 +2,11 @@ package Devel::REPL::Plugin::CompletionDriver::Globals; use Devel::REPL::Plugin; 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) = @_;