refactor(typescript): move typescript to sub module init

This commit is contained in:
Folke Lemaitre 2026-03-20 15:58:39 +01:00
parent 3b3d649333
commit fbf52d5496
No known key found for this signature in database
GPG key ID: 9B52594D560070AB
2 changed files with 1 additions and 1 deletions

View file

@ -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