-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhttp.lua
63 lines (63 loc) · 1.6 KB
/
http.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
return {
"LintaoAmons/context-menu.nvim",
dependencies = {
"mistweaverco/kulala.nvim",
},
opts = function()
require("context-menu").setup({
menu_items = {
{
cmd = "Send HTTP Request",
fix = 1,
ft = { "http" },
action = {
type = "callback",
callback = function(_)
require("kulala").run()
end,
},
},
{
cmd = "HTTP",
fix = 2,
ft = { "http" },
action = {
type = "sub_cmds",
sub_cmds = {
{
cmd = "Re Run",
fix = 1,
action = {
type = "callback",
callback = function(_)
require("kulala").replay()
end,
},
},
{
cmd = "Copy Curl",
fix = 1,
action = {
type = "callback",
callback = function(_)
require("kulala").copy()
end,
},
},
{
cmd = "From Curl",
fix = 1,
action = {
type = "callback",
callback = function(_)
require("kulala").from_curl()
end,
},
},
},
},
},
},
})
end,
}