make dep only require nvim 0.8, and make the lazy utils better

This commit is contained in:
2025-04-24 14:38:25 -05:00
parent 296dc11c93
commit d217ffa0b6
4 changed files with 23 additions and 13 deletions

View File

@ -18,7 +18,7 @@ local function default_log_path()
vim.loop.fs_mkdir(path, 0x1ff) -- 0777
end
return vim.fs.joinpath(path, "/dep.log")
return vim.fs.normalize(path).."/dep.log"
end
--- attempt to format a string

View File

@ -331,7 +331,7 @@ end
--- set the base directory for packages
---@param _base_dir string base directory
function package.set_base_dir(_base_dir)
base_dir = _base_dir
base_dir = vim.fs.normalize(_base_dir)
end
--- get the base directory for packages