plugins.rest.settings
Options provided to the require('rest-nvim').setup
function.
Type: attribute set of anything
Default:
{ }
Example:
{
_log_level = "info";
clients = {
curl = {
opts = {
set_compressed = true;
};
};
};
cookies = {
enable = false;
};
env = {
enable = false;
};
request = {
skip_ssl_verification = true;
};
response = {
hooks = {
format = false;
};
};
ui = {
winbar = false;
};
}
Declared by:
plugins.rest.settings._log_level
The logging level name, see :h vim.log.levels
.
Type: null or one of “off”, “error”, “warn”, “info”, “debug”, “trace” or raw lua code
Default:
null
Plugin default: "warn"
Declared by:
plugins.rest.settings.clients
Table of client configurations.
Type: null or (attribute set of (anything or raw lua code))
Default:
null
Plugin default:
{
curl = {
opts = {
set_compressed = false;
};
statistics = [
{
id = "time_total";
title = "Time taken";
winbar = "take";
}
{
id = "size_download";
title = "Download size";
winbar = "size";
}
];
};
}
Declared by:
plugins.rest.settings.custom_dynamic_variables
Custom dynamic variables. Keys are variable names and values are lua functions.
default: {}
Type: null or (attribute set of lua function string) or raw lua code
Default:
null
Example:
{
"\$randomInt" = ''
function()
return math.random(0, 1000)
end
'';
"\$timestamp" = "os.time";
}
Declared by: