Refacto palette and theme, added more colors

This commit is contained in:
2024-02-18 16:46:13 +01:00
parent 8a91acbe19
commit e4cfb6ebd0
15 changed files with 431 additions and 240 deletions

View File

@@ -9,11 +9,13 @@ ASTROBOX_ROOT_PATH = get_module_root_path("astrobox")
local M = {}
---@param module string
---@param visitor function
function M.visit_astrobox_modules(module, visitor)
local modpath = ASTROBOX_ROOT_PATH .. module:gsub("%.", "/")
local hdl, err, msg = vim.loop.fs_scandir(modpath)
if hdl == nil then
print("Astrobox err: " .. err .. " " .. vim.inspect(msg))
vim.notify("Astrobox err: " .. err .. " " .. vim.inspect(msg), vim.log.levels.ERROR)
return
end
while true do
@@ -27,7 +29,7 @@ function M.visit_astrobox_modules(module, visitor)
if ok then
visitor(mod, mod_name)
else
print("AstroBox:Failed to load module " .. mod_name)
vim.notify("AstroBox:Failed to load module " .. mod_name, vim.log.levels.ERROR)
end
end
end