mirror of
https://github.com/macocianradu/nvim-http.git
synced 2026-03-18 21:00:05 +00:00
MVP
This commit is contained in:
17
plugin/nvim-http.lua
Normal file
17
plugin/nvim-http.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
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",
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user