feat(fs): vim.fs.normalize{plain:boolean} #41127

`opts.plain=true` does not expand tildes in addition to environment
variables, unlike `opts.expand_env=false`.

`opts.expand_env=false` is soft-deprecated.
This commit is contained in:
Olivia Kinnear
2026-08-05 15:11:13 -05:00
committed by GitHub
parent f599e2b8ab
commit 6107629c5b
8 changed files with 34 additions and 24 deletions

View File

@@ -79,7 +79,7 @@ local function fs_stat_cached(path)
end
local function normalize(path)
return fs.normalize(path, { expand_env = false, _fast = true })
return fs.normalize(path, { plain = true, _fast = true })
end
local rtp_cached = {} --- @type string[]