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