From 741d95a52af71da9b198294a2e5f6dc895ddcdc6 Mon Sep 17 00:00:00 2001 From: "LAPTOP-G43MA5MO\\ekarni" Date: Sun, 12 May 2024 03:03:00 +0300 Subject: [PATCH] add moduledir --- lua/lazy/core/util.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lua/lazy/core/util.lua b/lua/lazy/core/util.lua index e51e670..e8e0685 100644 --- a/lua/lazy/core/util.lua +++ b/lua/lazy/core/util.lua @@ -260,7 +260,12 @@ end function M.lsmod(modname, fn) local root = M.find_root(modname) if not root then - return + local Config = require("lazy.core.config") + if Config.options.moduledir then + root = Config.options.moduledir .. modname + else + return + end end if vim.uv.fs_stat(root .. ".lua") then