Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Helpers for defining autocmds.
Synopsis
- withAugroup :: Maybe AutocmdGroup -> (Map Text Object -> RpcCall a) -> RpcCall a
- autocmd :: AutocmdEvents -> AutocmdOptions -> Text -> RpcCall AutocmdId
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.
:: AutocmdEvents | Trigger events. |
-> AutocmdOptions | Options as defined for |
-> Text | The command to execute. |
-> RpcCall AutocmdId |
Create an autocmd.