mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-22 04:21:08 +00:00
refactor(typescript): move typescript to sub module init
This commit is contained in:
parent
3b3d649333
commit
fbf52d5496
2 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ function M.get()
|
|||
if root then
|
||||
LazyVim.walk(root, function(path, name, type)
|
||||
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("/", "."):gsub("%.init$", "")
|
||||
local ok, extra = pcall(M.get_extra, source, source.module .. "." .. name)
|
||||
if ok then
|
||||
extras[#extras + 1] = extra
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue