From 6a37171df6391482a3440cf607c173525bc875ba Mon Sep 17 00:00:00 2001 From: Iordanis Petkakis Date: Tue, 19 Mar 2024 23:28:00 +0200 Subject: [PATCH] fix(extras): accept symlinks in User `extras` directory (#2745) --- lua/lazyvim/util/extras.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazyvim/util/extras.lua b/lua/lazyvim/util/extras.lua index 4e2f0bc1..a75c8413 100644 --- a/lua/lazyvim/util/extras.lua +++ b/lua/lazyvim/util/extras.lua @@ -42,7 +42,7 @@ function M.get() local root = Util.find_root(source.module) if root then Util.walk(root, function(path, name, type) - if type == "file" and name:match("%.lua$") then + if (type == "file" or type == "link") and name:match("%.lua$") then name = path:sub(#root + 2, -5):gsub("/", ".") local ok, extra = pcall(M.get_extra, source, source.module .. "." .. name) if ok then