mirror of
https://github.com/folke/snacks.nvim
synced 2025-07-07 21:25:11 +00:00
fix(compat): vim.fs.normalize. Closes #1321
This commit is contained in:
parent
f6c7bac2f6
commit
2295cfcca5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue