nvim/lua/plugins/http_rest.lua
RingOfStorms (Joshua Bell) af4a920551 small updates around the place
2024-02-20 21:00:17 -06:00

26 lines
509 B
Lua

local U = require("util")
return {
"rest-nvim/rest.nvim",
enabled = function()
return U.cmd_executable("curl", {
[false] = function()
vim.notify("curl not installed, http rest disabled", 2)
end,
})
end,
event = "BufEnter *.http",
dependencies = { "nvim-lua/plenary.nvim" },
opts = {
encode_url = false,
},
keys = {
{
"<leader>r",
function()
require("rest-nvim").run()
end,
desc = "Send selected http request",
},
},
}