Skip to content

Commit f464541

Browse files
committed
plugins/hurl: init
1 parent eb719d8 commit f464541

File tree

2 files changed

+114
-0
lines changed

2 files changed

+114
-0
lines changed

plugins/by-name/hurl/default.nix

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{ lib, ... }:
2+
lib.nixvim.plugins.mkNeovimPlugin {
3+
name = "hurl";
4+
packPathName = "hurl.nvim";
5+
package = "hurl-nvim";
6+
7+
maintainers = [ lib.maintainers.GaetanLepage ];
8+
9+
settingsExample = {
10+
debug = true;
11+
mode = "popup";
12+
env_file = [ "vars.env" ];
13+
formatters = {
14+
json = [ "jq" ];
15+
html = [
16+
"prettier"
17+
"--parser"
18+
"html"
19+
];
20+
xml = [
21+
"tidy"
22+
"-xml"
23+
"-i"
24+
"-q"
25+
];
26+
};
27+
};
28+
}
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
{
2+
empty = {
3+
plugins.hurl.enable = true;
4+
};
5+
6+
defaults = {
7+
plugins.hurl = {
8+
enable = true;
9+
10+
settings = {
11+
debug = false;
12+
mode = "split";
13+
show_notification = false;
14+
auto_close = true;
15+
split_position = "right";
16+
split_size = "50%";
17+
popup_position = "50%";
18+
popup_size = {
19+
width = 80;
20+
height = 40;
21+
};
22+
env_file = [ "vars.env" ];
23+
fixture_vars = [
24+
{
25+
name = "random_int_number";
26+
callback.__raw = ''
27+
function()
28+
return math.random(1, 1000)
29+
end
30+
'';
31+
}
32+
{
33+
name = "random_float_number";
34+
callback.__raw = ''
35+
function()
36+
local result = math.random() * 10
37+
return string.format('%.2f', result)
38+
end
39+
'';
40+
}
41+
];
42+
find_env_files_in_folders.__raw = "require('hurl.utils').find_env_files_in_folders";
43+
formatters = {
44+
json = [ "jq" ];
45+
html = [
46+
"prettier"
47+
"--parser"
48+
"html"
49+
];
50+
xml = [
51+
"tidy"
52+
"-xml"
53+
"-i"
54+
"-q"
55+
];
56+
};
57+
};
58+
};
59+
};
60+
61+
example = {
62+
plugins.hurl = {
63+
enable = true;
64+
65+
settings = {
66+
debug = true;
67+
mode = "popup";
68+
env_file = [ "vars.env" ];
69+
formatters = {
70+
json = [ "jq" ];
71+
html = [
72+
"prettier"
73+
"--parser"
74+
"html"
75+
];
76+
xml = [
77+
"tidy"
78+
"-xml"
79+
"-i"
80+
"-q"
81+
];
82+
};
83+
};
84+
};
85+
};
86+
}

0 commit comments

Comments
 (0)