mirror of
https://github.com/macocianradu/nvim-http.git
synced 2026-03-18 12:50:06 +00:00
18 lines
411 B
Lua
18 lines
411 B
Lua
local ok, nvim_http = pcall(require, "nvim_http")
|
|
if not ok then
|
|
return
|
|
end
|
|
|
|
vim.api.nvim_create_user_command("NvimHttpRun", function()
|
|
nvim_http.run_http_under_cursor()
|
|
end, {
|
|
desc = "Run HTTP command under cursor and open Telescope response tree",
|
|
})
|
|
|
|
vim.api.nvim_create_user_command("NvimHttpClear", function()
|
|
nvim_http.clear_http_result()
|
|
end, {
|
|
desc = "Close and clear HTTP response tree",
|
|
})
|
|
|