mirror of https://github.com/folke/lazy.nvim.git
fix: strip `/` from dirs. Fixes #60
This commit is contained in:
parent
86eaa118c6
commit
540847b7cb
|
@ -35,7 +35,8 @@ function M.norm(path)
|
|||
end
|
||||
path = home .. path:sub(2)
|
||||
end
|
||||
return path:gsub("\\", "/")
|
||||
path = path:gsub("\\", "/")
|
||||
return path:sub(-1) == "/" and path:sub(1, -2) or path
|
||||
end
|
||||
|
||||
function M.try(fn, msg)
|
||||
|
|
Loading…
Reference in New Issue