aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/process.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim-lsp-installer/process.lua')
-rw-r--r--lua/nvim-lsp-installer/process.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/lua/nvim-lsp-installer/process.lua b/lua/nvim-lsp-installer/process.lua
index 9316fd38..87a4b950 100644
--- a/lua/nvim-lsp-installer/process.lua
+++ b/lua/nvim-lsp-installer/process.lua
@@ -39,10 +39,7 @@ local initial_environ = vim.fn.environ()
---@param new_paths string[] @A list of paths to prepend the existing PATH with.
function M.extend_path(new_paths)
local new_path_str = table.concat(new_paths, platform.path_sep)
- if initial_environ["PATH"] then
- return new_path_str .. platform.path_sep .. initial_environ["PATH"]
- end
- return new_path_str
+ return ("%s%s%s"):format(new_path_str, platform.path_sep, initial_environ.PATH or "")
end
---Merges the provided env param with the user's full environent. Provided env has precedence.