fix: fix the usermodule load

This commit is contained in:
2026-05-30 14:16:56 -04:00
parent d6d95173bd
commit ffa71223d5
+3 -1
View File
@@ -79,7 +79,9 @@ function M.tbl_recursive_merge(defaults, overrides)
end
function M.extend_config(defaults, user_module)
if not M.is_file_exists(HYPR .. user_module) then
local file = HYPR .. "/" .. string.gsub(user_module, "%.", "/") .. ".lua"
if not M.is_file_exists(file) then
print(file .. " not found.")
return deepcopy(defaults)
end
local ok, overrides = pcall(require, user_module)