mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-10 09:14:31 +02:00
plugins/kulala: init
This commit is contained in:
parent
5c6dd20aeb
commit
7b0df222fc
2 changed files with 273 additions and 0 deletions
83
tests/test-sources/plugins/by-name/kulala/default.nix
Normal file
83
tests/test-sources/plugins/by-name/kulala/default.nix
Normal file
|
@ -0,0 +1,83 @@
|
|||
{
|
||||
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 = { };
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue