chore: cleanup and format style changes

This commit is contained in:
2025-03-08 13:59:28 +01:00
parent fb38ee0071
commit 4f11874437
7 changed files with 14 additions and 10 deletions

View File

@@ -20,7 +20,9 @@ function M.visit_astrobox_modules(module, visitor)
end
while true do
local entry, type = vim.loop.fs_scandir_next(hdl)
if entry == nil then break end
if entry == nil then
break
end
if type == "file" and vim.endswith(entry, ".lua") then
local mod_name = entry:sub(0, -5) -- cut extension
local ok, mod = pcall(require, "astrobox." .. module .. "." .. mod_name)