Refacto palette and theme, added more colors
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user