mirror of
https://github.com/neovim/neovim.git
synced 2026-08-27 01:21:48 +00:00
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:
@@ -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[]
|
||||
|
||||
Reference in New Issue
Block a user