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.
vim.fn.environ
1 parent 3639e51 commit 22640a6Copy full SHA for 22640a6
lua/paq.lua
@@ -14,7 +14,8 @@ local messages = {
14
15
-- This is done only once. Doing it for every process seems overkill
16
local env = {}
17
-for var, val in pairs(uv.os_environ()) do
+local envfn = vim.fn.has('nvim-0.6') == 1 and uv.os_environ or vim.fn.environ -- compat
18
+for var, val in pairs(envfn()) do
19
table.insert(env, ("%s=%s"):format(var, val))
20
end
21
table.insert(env, "GIT_TERMINAL_PROMPT=0")
0 commit comments