예제 #1
0
 def stackage(self, rplugin: StackageRplugin) -> NvimIO[ActiveRplugin]:
     return activate_stack_plugin(rplugin, Path.home())
예제 #2
0
 def hackage(self, rplugin: HackageRplugin) -> NvimIO[ActiveRplugin]:
     return activate_cabal_plugin(rplugin, Path.home())
예제 #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)