mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-25 18:28:50 +02:00
fix(extras): dont show extras that give errors (user's extras). Fixes #1895
This commit is contained in:
parent
4b758c40c0
commit
b32b4fd581
1 changed files with 4 additions and 1 deletions
|
@ -44,7 +44,10 @@ function M.get()
|
||||||
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" and name:match("%.lua$") then
|
||||||
name = path:sub(#root + 2, -5):gsub("/", ".")
|
name = path:sub(#root + 2, -5):gsub("/", ".")
|
||||||
extras[#extras + 1] = M.get_extra(source, source.module .. "." .. name)
|
local ok, extra = pcall(M.get_extra, source, source.module .. "." .. name)
|
||||||
|
if ok then
|
||||||
|
extras[#extras + 1] = extra
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue