Files
nvim-http/plugin/nvim-http.lua
radumaco 70016196c1 MVP
2026-03-06 22:14:04 +01:00

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",
})