aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/process.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-09-07 03:19:12 +0200
committerWilliam Boman <william@redwill.se>2021-09-07 03:26:46 +0200
commitedf900163bf4ba1581b5350799a3ba4424a38006 (patch)
treedeb771f4318217ae07d0944d31e22a7a0621011d /lua/nvim-lsp-installer/process.lua
parentadd direct integration with libuv instead of going through termopen, also imp... (diff)
downloadmason-edf900163bf4ba1581b5350799a3ba4424a38006.tar
mason-edf900163bf4ba1581b5350799a3ba4424a38006.tar.gz
mason-edf900163bf4ba1581b5350799a3ba4424a38006.tar.bz2
mason-edf900163bf4ba1581b5350799a3ba4424a38006.tar.lz
mason-edf900163bf4ba1581b5350799a3ba4424a38006.tar.xz
mason-edf900163bf4ba1581b5350799a3ba4424a38006.tar.zst
mason-edf900163bf4ba1581b5350799a3ba4424a38006.zip
some fixes
Diffstat (limited to 'lua/nvim-lsp-installer/process.lua')
-rw-r--r--lua/nvim-lsp-installer/process.lua6
1 files changed, 5 insertions, 1 deletions
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