mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-24 12:45:24 +02:00
plugins/rest: move to by-name again
This commit is contained in:
parent
d42c804ad5
commit
31acdd4b66
3 changed files with 0 additions and 2 deletions
86
tests/test-sources/plugins/by-name/rest/default.nix
Normal file
86
tests/test-sources/plugins/by-name/rest/default.nix
Normal file
|
@ -0,0 +1,86 @@
|
|||
{
|
||||
empty = {
|
||||
plugins = {
|
||||
rest.enable = true;
|
||||
treesitter.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins = {
|
||||
treesitter.enable = true;
|
||||
rest = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
custom_dynamic_variables = { };
|
||||
request = {
|
||||
skip_ssl_verification = false;
|
||||
hooks = {
|
||||
encode_url = true;
|
||||
user_agent.__raw = ''"rest.nvim v" .. require("rest-nvim.api").VERSION'';
|
||||
set_content_type = true;
|
||||
};
|
||||
};
|
||||
response = {
|
||||
hooks = {
|
||||
decode_url = true;
|
||||
format = true;
|
||||
};
|
||||
};
|
||||
clients = {
|
||||
curl = {
|
||||
statistics = [
|
||||
{
|
||||
id = "time_total";
|
||||
winbar = "take";
|
||||
title = "Time taken";
|
||||
}
|
||||
{
|
||||
id = "size_download";
|
||||
winbar = "size";
|
||||
title = "Download size";
|
||||
}
|
||||
];
|
||||
opts = {
|
||||
set_compressed = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
cookies = {
|
||||
enable = true;
|
||||
path.__raw = ''vim.fs.joinpath(vim.fn.stdpath("data") --[[@as string]], "rest-nvim.cookies")'';
|
||||
};
|
||||
env = {
|
||||
enable = true;
|
||||
pattern = ".*%.env.*";
|
||||
};
|
||||
ui = {
|
||||
winbar = true;
|
||||
keybinds = {
|
||||
prev = "H";
|
||||
next = "L";
|
||||
};
|
||||
};
|
||||
highlight = {
|
||||
enable = true;
|
||||
timeout = 750;
|
||||
};
|
||||
_log_level.__raw = ''vim.log.levels.WARN'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
telescope = {
|
||||
plugins = {
|
||||
rest = {
|
||||
enable = true;
|
||||
enableTelescope = true;
|
||||
};
|
||||
treesitter.enable = true;
|
||||
telescope.enable = true;
|
||||
web-devicons.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue