mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-19 10:14:37 +02:00
fix(extras): accept symlinks in User extras
directory (#2745)
This commit is contained in:
parent
b8c6d87825
commit
6a37171df6
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ function M.get()
|
||||||
local root = Util.find_root(source.module)
|
local root = Util.find_root(source.module)
|
||||||
if root then
|
if root then
|
||||||
Util.walk(root, function(path, name, type)
|
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("/", ".")
|
name = path:sub(#root + 2, -5):gsub("/", ".")
|
||||||
local ok, extra = pcall(M.get_extra, source, source.module .. "." .. name)
|
local ok, extra = pcall(M.get_extra, source, source.module .. "." .. name)
|
||||||
if ok then
|
if ok then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue