def flag_channel_id() -> Do: name = yield plugin_name() state = yield nvim_call_json(f'{camelcase(name)}State') active = yield N.m(state.active.head, 'no active rplugins') return active.channel
def setup_one_with_venvs(name: str, venv_dir: Maybe[Path] = Nothing) -> Do: base_dir = yield setup_venv_dir(venv_dir) rplugin = yield setup_one(name, venv_dir) venv_rplugin = yield N.m(cons_installable_rplugin.match(rplugin), f'couldn\'t cons InstallableRplugin') return base_dir, venv_rplugin