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

Ribosome.Plugin.Builtin

Description

Interceptor that adds internal RPC handlers to the host.

Synopsis

Documentation

watcherEvents :: [(Text, AutocmdPatterns)] Source #

The set of autocmds that should trigger an update in VariableWatcher.

updateVar :: Member (VariableWatcher !! Report) r => Handler r () Source #

Run update and restop errors.

watcherRpc :: forall r. Member (VariableWatcher !! Report) r => PluginName -> Text -> AutocmdPatterns -> RpcHandler r Source #

Declare an autocmd that triggers the variable watcher.

deleteScratch :: Member (Scratch !! RpcError) r => ScratchId -> Handler r () Source #

Delete a scratch buffer.

deleteName :: PluginName -> RpcName Source #

The name for the handler that is triggered by a scratch buffer being deleted.

builtinHandlers :: forall r. Members [Scratch !! RpcError, VariableWatcher !! Report] r => PluginName -> [RpcHandler r] Source #

A set of RpcHandlers for internal tasks.

interceptHandlersBuiltin :: Members BuiltinHandlersDeps r => Sem r a -> Sem r a Source #

Add builtin handlers to Handlers without removing the effect from the stack.