fix(compat): vim.fs.normalize. Closes #1321

This commit is contained in:
Folke Lemaitre 2025-02-22 07:48:52 +01:00
parent f6c7bac2f6
commit 2295cfcca5
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -23,7 +23,7 @@ if vim.fn.has("nvim-0.11") == 0 then
---@param path (string) Path to normalize
---@param opts? vim.fs.normalize.Opts
---@return (string) : Normalized path
function M.normalize(path, opts)
function M.fs.normalize(path, opts)
local ret = svim.fs.normalize(path, opts)
return is_win and ret:gsub("^%a:", string.upper) or ret
end