Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Interpreters for Settings
Synopsis
- settingVariableName :: Member (Reader PluginName) r => Setting a -> Sem r Text
- settingRaw :: Members [Rpc, Reader PluginName] r => MsgpackDecode a => Setting a -> Sem r a
- fallback :: Members [Reader PluginName, Stop SettingError] r => Setting a -> Sem r a
- interpretSettingsRpc :: Members [Rpc !! RpcError, Reader PluginName] r => InterpreterFor (Settings !! SettingError) r
Documentation
settingVariableName :: Member (Reader PluginName) r => Setting a -> Sem r Text Source #
Assemble the name of a setting variable by prefixing the Setting
key with the plugin name if the flag is set.
settingRaw :: Members [Rpc, Reader PluginName] r => MsgpackDecode a => Setting a -> Sem r a Source #
Fetch the value for a setting stored in its Neovim variable.
fallback :: Members [Reader PluginName, Stop SettingError] r => Setting a -> Sem r a Source #
Return the default value for a setting or stop with an error if none is set.
interpretSettingsRpc :: Members [Rpc !! RpcError, Reader PluginName] r => InterpreterFor (Settings !! SettingError) r Source #
Interpret Settings
natively, using Neovim variables.