public function plugins($local = true)
{
$gpm = $this->gpm();
if (!$gpm) {
return false;
}
return $local ? $gpm->getInstalledPlugins() : $gpm->getRepositoryPlugins()->filter(function ($package, $slug) use($gpm) {
return !$gpm->isPluginInstalled($slug);
});
}