mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
fix: resolve all remaining LuaLS diagnostics
This commit is contained in:

committed by
Lewis Russell

parent
83479b95ab
commit
6aa42e8f92
@@ -546,7 +546,7 @@ local function expand_home(path, sep)
|
||||
home = home:sub(1, -2)
|
||||
end
|
||||
|
||||
path = home .. path:sub(2)
|
||||
path = home .. path:sub(2) --- @type string
|
||||
end
|
||||
|
||||
return path
|
||||
@@ -620,7 +620,7 @@ function M.normalize(path, opts)
|
||||
|
||||
-- Expand environment variables if `opts.expand_env` isn't `false`
|
||||
if opts.expand_env == nil or opts.expand_env then
|
||||
path = path:gsub('%$([%w_]+)', uv.os_getenv)
|
||||
path = path:gsub('%$([%w_]+)', uv.os_getenv) --- @type string
|
||||
end
|
||||
|
||||
if win then
|
||||
|
Reference in New Issue
Block a user