We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb1c2f4 commit 62c1542Copy full SHA for 62c1542
lua/lazy/core/cache.lua
@@ -99,13 +99,15 @@ end
99
---@param modpath string
100
---@return any, string?
101
function M.loadfile(modpath)
102
+ modpath = modpath:gsub("\\", "/")
103
return M.load(modpath, modpath)
104
end
105
106
---@param modkey string
107
108
---@return function?, string? error_message
109
function M.load(modkey, modpath)
110
111
local hash = M.hash(modpath)
112
if not hash then
113
-- trigger correct error
@@ -167,6 +169,7 @@ function M.get_rtp()
167
169
168
170
171
for _, path in ipairs(vim.api.nvim_list_runtime_paths()) do
172
+ path = path:gsub("\\", "/")
173
if not skip[path] then
174
M.rtp[#M.rtp + 1] = path
175
0 commit comments