From fbf52d54967d262647842f3b51fd535d3b3645b5 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Fri, 20 Mar 2026 15:58:39 +0100 Subject: [PATCH] refactor(typescript): move typescript to sub module init --- .../plugins/extras/lang/{typescript.lua => typescript/init.lua} | 0 lua/lazyvim/util/extras.lua | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename lua/lazyvim/plugins/extras/lang/{typescript.lua => typescript/init.lua} (100%) diff --git a/lua/lazyvim/plugins/extras/lang/typescript.lua b/lua/lazyvim/plugins/extras/lang/typescript/init.lua similarity index 100% rename from lua/lazyvim/plugins/extras/lang/typescript.lua rename to lua/lazyvim/plugins/extras/lang/typescript/init.lua diff --git a/lua/lazyvim/util/extras.lua b/lua/lazyvim/util/extras.lua index 6bc8eca2..06339a92 100644 --- a/lua/lazyvim/util/extras.lua +++ b/lua/lazyvim/util/extras.lua @@ -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