From ffa71223d577974e4eba00f7002c980dacb5104e Mon Sep 17 00:00:00 2001 From: Yingjie Wang Date: Sat, 30 May 2026 14:16:56 -0400 Subject: [PATCH] fix: fix the usermodule load --- lua/lib/utils.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/lib/utils.lua b/lua/lib/utils.lua index ff20856..fd06705 100644 --- a/lua/lib/utils.lua +++ b/lua/lib/utils.lua @@ -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)