Skip to content

Commit

Permalink
feat: Fetch colorschemes during extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
reobin committed Jan 25, 2025
1 parent 78b9a67 commit 1c9d5d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/extractor/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ end

--- For each installed colorscheme, try both light and dark backgrounds, then
--- extracts the color groups and writes them to a file.
--- @param colorschemes string[] The colorschemes to extract the color groups from.
--- @param output_path string The path to write the extracted color groups to. Optional.
function M.extract(colorschemes, output_path)
function M.extract(output_path)
print("Starting color group extraction...")
if is_output_path_valid(output_path) then
print("Output path: " .. output_path)
else
output_path = ""
end

local colorschemes = Vim.get_colorschemes()
if not is_colorschemes_valid(colorschemes) then
error("Invalid colorschemes parameter.")
error("No valid colorschemes.")
end

print("Colorschemes to analyze: " .. Table.to_json(colorschemes))
Expand Down

0 comments on commit 1c9d5d1

Please sign in to comment.