feat: support importing init.lua submodules

This commit is contained in:
Marc Jakobi
2024-06-18 18:04:17 +02:00
parent d911029947
commit 5c3c2a1eb4
2 changed files with 22 additions and 1 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ local function import_spec(spec, result)
ty = ty or vim.uv.fs_stat(path).type
if not name then
break
elseif ty == "file" then
elseif ty == "file" or ty == "directory" then
local submodname = vim.fn.fnamemodify(name, ":r")
import_modname(modname .. "." .. submodname, result)
end