We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e358c1 commit b59bb7dCopy full SHA for b59bb7d
lua/rest-nvim/utils/init.lua
@@ -48,15 +48,14 @@ end
48
-- read_env_file Reads the environment variables found in the `.env` file and
49
-- returns a table with the variables
50
M.read_env_file = function()
51
-
52
local variables = {}
53
54
-- Directories to search for env files
55
local env_file_paths = {
56
-- current working directory
57
vim.fn.getcwd() .. "/.env",
58
-- directory of the currently opened file
59
- vim.fn.expand("%:p:h") .. "/.env"
+ vim.fn.expand("%:p:h") .. "/.env",
60
}
61
62
-- If there's an env file in the current working dir
0 commit comments