Ejemplo n.º 1
0
 def stackage(self, rplugin: StackageRplugin) -> NvimIO[ActiveRplugin]:
     return activate_stack_plugin(rplugin, Path.home())
Ejemplo n.º 2
0
 def hackage(self, rplugin: HackageRplugin) -> NvimIO[ActiveRplugin]:
     return activate_cabal_plugin(rplugin, Path.home())
Ejemplo n.º 3
0
def default_venv_dir() -> Do:
    xdg_cache_path = xdg_cache_home.value / Path | (Path.home() / '.cache')
    venv_dir = xdg_cache_path / 'chromatin' / 'venvs'
    yield Try(venv_dir.mkdir, parents=True, exist_ok=True).lmap(lambda a: create_venv_dir_error(venv_dir))
    yield Right(venv_dir)