Skip to content

Commit ac405e1

Browse files
docs: update documents
1 parent 8bbd995 commit ac405e1

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ local default_config = {
155155
---@type boolean Add `--compressed` argument when `Accept-Encoding` header includes
156156
---`gzip`
157157
set_compressed = false,
158+
---@type table<string, Certificate> Table containing certificates for each domains
159+
certificates = {},
158160
},
159161
},
160162
},
@@ -171,6 +173,17 @@ local default_config = {
171173
enable = true,
172174
---@type string
173175
pattern = ".*%.env.*",
176+
---@type fun():string[]
177+
find = function()
178+
local config = require("rest-nvim.config")
179+
return vim.fs.find(function(name, _)
180+
return name:match(config.env.pattern)
181+
end, {
182+
path = vim.fn.getcwd(),
183+
type = "file",
184+
limit = math.huge,
185+
})
186+
end,
174187
},
175188
---@class rest.Config.UI
176189
ui = {

doc/rest-nvim.txt

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,17 @@ rest.Opts.Clients.Curl *rest.Opts.Clients.Curl*
185185
rest.Opts.Clients.Curl.Opts *rest.Opts.Clients.Curl.Opts*
186186

187187
Fields: ~
188-
{set_compressed?} (boolean) Add `--compressed` argument when `Accept-Encoding` header includes `gzip`
189-
(Default: `false`)
190-
{certificates?} (Certificates[]) Add `--cert` or `--key` to the `curl` command when required with
191-
specific domains
192-
(default: nil)
188+
{set_compressed?} (boolean) Add `--compressed` argument when `Accept-Encoding` header includes `gzip`
189+
(Default: `false`)
190+
{certificates?} (table<string,Certificate>) Add `--cert`, `--key` or `--pem` to the `curl` command when required with specific domains
191+
(default: `nil`)
192+
193+
194+
Certificate *Certificate*
195+
196+
Fields: ~
197+
{set_certificate_crt} (string)
198+
{set_certificate_key} (string)
193199

194200

195201
RestStatisticsStyle *RestStatisticsStyle*

0 commit comments

Comments
 (0)