Something went wrong. Try again.
Something went wrong. Try again.
602 B · 30 lines
Lua
at main
12345678910111213141516171819202122232425262728293031---@mod rest-nvim.script script runner client for rest.nvim------@brief [[------ Script runner client for rest.nvim.--- This can be external module like `rest.client`------@brief ]]
---@class rest.ScriptClientlocal script = {}
---@param str string---@param ctx rest.Contextfunction script.load_pre_req_hook(str, ctx) return function() vim.print(str, ctx) endend
---@param str string---@param ctx rest.Contextfunction script.load_post_req_hook(str, ctx) ---@param res rest.Response return function(res) vim.print(str, ctx, res) endend
return script