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

Ribosome.Interpreter.Settings

Description

Interpreters for Settings

Synopsis

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.