From 1c9d5d193ccfd60e5af3f7dd70d803b41701f1ed Mon Sep 17 00:00:00 2001 From: Robin Gagnon Date: Sat, 25 Jan 2025 16:04:21 -0500 Subject: [PATCH] feat: Fetch colorschemes during extraction --- lua/extractor/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/extractor/init.lua b/lua/extractor/init.lua index 46022ed..ea8569a 100644 --- a/lua/extractor/init.lua +++ b/lua/extractor/init.lua @@ -15,9 +15,8 @@ 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) @@ -25,8 +24,9 @@ function M.extract(colorschemes, output_path) 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))