nix-community.nixvim/tests/test-sources/plugins/by-name/kulala/default.nix
2024-11-16 16:43:44 +00:00

83 lines
1.9 KiB
Nix

{
empty = {
plugins.kulala.enable = true;
};
default = {
plugins.kulala = {
enable = true;
settings = {
curl_path = "curl";
display_mode = "split";
split_direction = "vertical";
default_view = "body";
default_env = "dev";
debug = false;
contenttypes = {
"application/json" = {
ft = "json";
formatter = [
"jq"
"."
];
pathresolver = "kulala.parser.jsonpath.parse";
};
"application/xml" = {
ft = "xml";
formatter = [
"xmllint"
"--format"
"-"
];
pathresolver = [
"xmllint"
"--xpath"
"{{path}}"
"-"
];
};
"text/html" = {
ft = "html";
formatter = [
"xmllint"
"--format"
"--html"
"-"
];
pathresolver = [ ];
};
};
show_icons = "on_request";
icons = {
inlay = {
loading = "";
done = "";
error = "";
};
lualine = "🐼";
};
additional_curl_options = { };
scratchpad_default_contents = [
"@MY_TOKEN_NAME=my_token_value"
""
"# @name scratchpad"
"POST https://httpbin.org/post HTTP/1.1"
"accept: application/json"
"content-type: application/json"
""
];
winbar = false;
default_winbar_panes = [
"body"
"headers"
"headers_body"
];
vscode_rest_client_environmentvars = false;
disable_script_print_output = false;
environment_scope = "b";
certificates = { };
};
};
};
}