diff options
| author | William Boman <william@redwill.se> | 2021-09-07 03:19:12 +0200 |
|---|---|---|
| committer | William Boman <william@redwill.se> | 2021-09-07 03:26:46 +0200 |
| commit | edf900163bf4ba1581b5350799a3ba4424a38006 (patch) | |
| tree | deb771f4318217ae07d0944d31e22a7a0621011d /lua/nvim-lsp-installer/process.lua | |
| parent | add direct integration with libuv instead of going through termopen, also imp... (diff) | |
| download | mason-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.lua | 6 |
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 |
