From edf900163bf4ba1581b5350799a3ba4424a38006 Mon Sep 17 00:00:00 2001 From: William Boman Date: Tue, 7 Sep 2021 03:19:12 +0200 Subject: some fixes --- lua/nvim-lsp-installer/process.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lua/nvim-lsp-installer/process.lua') diff --git a/lua/nvim-lsp-installer/process.lua b/lua/nvim-lsp-installer/process.lua index 61097a88..5195f06a 100644 --- a/lua/nvim-lsp-installer/process.lua +++ b/lua/nvim-lsp-installer/process.lua @@ -20,9 +20,13 @@ local function connect_sink(pipe, sink) end end +-- We gather the root env immediately, primarily because of E5560. +-- Also, there's no particular reason we need to refresh the environment (yet). +local environ = vim.fn.environ() + function M.graft_env(env) local root_env = {} - for key, val in pairs(vim.fn.environ()) do + for key, val in pairs(environ) do root_env[#root_env + 1] = key .. "=" .. val end for key, val in pairs(env) do -- cgit v1.2.3-70-g09d2