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

Ribosome.Host.Modify

Description

Modify RpcCall constructors that contain calls to nvim_command.

See :h :command-modifiers.

Synopsis

Documentation

modifyCall :: Text -> RpcCall a -> RpcCall a Source #

Modify an RpcCall constructor if it contains a request for nvim_command by prefixing it with the given string.

modifyCmd :: Member Rpc r => Text -> Sem r a -> Sem r a Source #

Prefix all nvim_commands called in an action with the given string.

silent :: Member Rpc r => Sem r a -> Sem r a Source #

Prefix all nvim_commands called in an action with silent.

silentBang :: Member Rpc r => Sem r a -> Sem r a Source #

Prefix all nvim_commands called in an action with silent!.

noautocmd :: Member Rpc r => Sem r a -> Sem r a Source #

Prefix all nvim_commands called in an action with noautocmd.

windo :: Member Rpc r => Window -> Sem r a -> Sem r a Source #

Prefix all nvim_commands called in an action with windo N where N is the number of the given window.

bufdo :: Member Rpc r => Buffer -> Sem r a -> Sem r a Source #

Prefix all nvim_commands called in an action with bufdo N where N is the number of the given buffer.