mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
53 lines
1.2 KiB
Nix
53 lines
1.2 KiB
Nix
|
{
|
||
|
empty = {
|
||
|
plugins.rest.enable = true;
|
||
|
};
|
||
|
|
||
|
defaults = {
|
||
|
plugins.rest = {
|
||
|
enable = true;
|
||
|
|
||
|
resultSplitHorizontal = false;
|
||
|
resultSplitInPlace = false;
|
||
|
stayInCurrentWindowAfterSplit = false;
|
||
|
skipSslVerification = false;
|
||
|
encodeUrl = true;
|
||
|
highlight = {
|
||
|
enabled = true;
|
||
|
timeout = 150;
|
||
|
};
|
||
|
result = {
|
||
|
showUrl = true;
|
||
|
showCurlCommand = true;
|
||
|
showHttpInfo = true;
|
||
|
showHeaders = true;
|
||
|
showStatistics = false;
|
||
|
formatters = {
|
||
|
json = "jq";
|
||
|
html.__raw = ''
|
||
|
function(body)
|
||
|
if vim.fn.executable("tidy") == 0 then
|
||
|
return body
|
||
|
end
|
||
|
-- stylua: ignore
|
||
|
return vim.fn.system({
|
||
|
"tidy", "-i", "-q",
|
||
|
"--tidy-mark", "no",
|
||
|
"--show-body-only", "auto",
|
||
|
"--show-errors", "0",
|
||
|
"--show-warnings", "0",
|
||
|
"-",
|
||
|
}, body):gsub("\n$", "")
|
||
|
end
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
jumpToRequest = false;
|
||
|
envFile = ".env";
|
||
|
customDynamicVariables = null;
|
||
|
yankDryRun = true;
|
||
|
searchBack = true;
|
||
|
};
|
||
|
};
|
||
|
}
|