summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-22 21:09:44 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-22 21:09:44 +0800
commit9c0651c0fadc9cc968b116ea21a133c1e9839a4a (patch)
tree9df9db6285ae0563329d78a94d7369025d2362ae /script
parente9ef67eb9f999aa51ac793cd70252e5587eb3bd6 (diff)
downloadlua-language-server-9c0651c0fadc9cc968b116ea21a133c1e9839a4a.zip
resolve #794
Diffstat (limited to 'script')
-rw-r--r--script/workspace/workspace.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua
index 099196ce..ea2c4737 100644
--- a/script/workspace/workspace.lua
+++ b/script/workspace/workspace.lua
@@ -482,6 +482,10 @@ function m.normalize(path)
if key == '3rd' then
return (ROOT / 'meta' / '3rd'):string()
end
+ if key:sub(1, 4) == 'env:' then
+ local env = os.getenv(key:sub(5))
+ return env
+ end
end)
path = util.expandPath(path)
if platform.OS == 'Windows' then