ribosome-0.9.9.9: Neovim plugin framework for Polysemy
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ribosome.Api.Path

Description

API function for file system paths.

Synopsis

Documentation

nvimCwd :: Member Rpc r => Sem r (Path Abs Dir) Source #

Get Neovim's current working directory.

nvimSetCwd :: Member Rpc r => Path Abs Dir -> Sem r () Source #

Set Neovim's current working directory.

nvimRelativePath :: Member Rpc r => SomeBase t -> Sem r (Path Abs t) Source #

Convert an abstract path to an absolute one, using Neovim's current working directory as the base for relative paths.

parseNvimDir :: Member Rpc r => Text -> Sem r (Maybe (Path Abs Dir)) Source #

Parse a directory path and prepend Neovim's current working directory to it if it's relative.

parseNvimFile :: Member Rpc r => Text -> Sem r (Maybe (Path Abs File)) Source #

Parse a file path and prepend Neovim's current working directory to it if it's relative.

nvimDir :: Members [Rpc, Stop Report] r => Text -> Sem r (Path Abs Dir) Source #

Parse a directory path and prepend Neovim's current working directory to it if it's relative.

If parsing fails, emit an error Report.

nvimFile :: Members [Rpc, Stop Report] r => Text -> Sem r (Path Abs File) Source #

Parse a file path and prepend Neovim's current working directory to it if it's relative.

If parsing fails, emit an error Report.