-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrest.lua
More file actions
25 lines (25 loc) · 697 Bytes
/
rest.lua
File metadata and controls
25 lines (25 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
-- plugins/rest.lua
return {
"rest-nvim/rest.nvim",
dependencies = { { "nvim-lua/plenary.nvim" } },
commit = "8b62563",
config = function()
require("rest-nvim").setup({
--- Get the same options from Packer setup
-- Skip SSL verification, useful for unknown certificates
skip_ssl_verification = true,
result_split_in_place = true,
result = {
formatters = {
json = "jq",
html = function(body)
return vim.fn.system({ "tidy", "-i", "-q", "-" }, body)
end,
},
},
keys = {
{ "<leader>rr", "<cmd><Plug>RestNvim<cr>", desc = "Run rest request under cursor" },
},
})
end,
}