resolve rt.cpan#43807 three Completion drivers not loading Completion plugin
[p5sagit/Devel-REPL.git] / lib / Devel / REPL / Plugin / CompletionDriver / Turtles.pm
index 351e67f..0ce6d77 100644 (file)
@@ -1,10 +1,12 @@
-#!/usr/bin/perl
-
 package Devel::REPL::Plugin::CompletionDriver::Turtles;
 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) = @_;