We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59afaac commit 6edb8fdCopy full SHA for 6edb8fd
lua/rest-nvim/dotenv.lua
@@ -33,15 +33,6 @@ end
33
---@param path string file path of dotenv file
34
---@param bufnr number? buffer identifier, default to current buffer
35
function M.register_file(path, bufnr)
36
- vim.validate({
37
- path = {
38
- path,
39
- function(p)
40
- return vim.endswith(p, ".env") or vim.endswith(p, ".json")
41
- end,
42
- "`.env` or `.json` filetype",
43
- },
44
- })
45
bufnr = bufnr or 0
46
vim.b[bufnr]._rest_nvim_env_file = path
47
vim.notify("Env file '" .. path .. "' has been registered", vim.log.levels.INFO, { title = "rest.nvim" })
0 commit comments