def plugin_venv(base_dir: Path, rplugin: Rplugin) -> Do: yield venv_existent(base_dir)(rplugin) venv_status = yield N.from_io(check_venv(base_dir, rplugin)) yield ( N.pure(venv_status.venv) if isinstance(venv_status, VenvPresent) else N.error(f'venv for {rplugin} did not appear') )
def site_rplugin(self, rplugin: SiteRplugin) -> NvimIO[ActiveRplugin]: return N.error('site rplugins not implemented yet')