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

Ribosome.Host.Api.Autocmd

Description

Helpers for defining autocmds.

Synopsis

Documentation

withAugroup :: Maybe AutocmdGroup -> (Map Text Object -> RpcCall a) -> RpcCall a Source #

Create an augroup if the first argument is Just, then call the second argument.

The parameter of the callback is a Map suitable to be passed to nvimCreateAutocmd, containing the group name.

autocmd Source #

Arguments

:: AutocmdEvents

Trigger events.

-> AutocmdOptions

Options as defined for :autocmd.

-> Text

The command to execute.

-> RpcCall AutocmdId 

Create an autocmd.