Skip to content

Commit

Permalink
fix(extras): improve palette style names
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Jul 12, 2024
1 parent 1d3bd42 commit 0e7f5e2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lua/astrotheme/extras/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ function M.setup()

-- map of style to style name
local palettes = {
astrodark = "Dark",
astrolight = "Light",
astromars = "Mars",
astrojupiter = "Jupiter",
astrodark = "AstroDark",
astrolight = "AstroLight",
astromars = "AstroMars",
astrojupiter = "AstroJupiter",
}

---@type string[]
Expand All @@ -58,7 +58,7 @@ function M.setup()
local highlights = util.get_highlights(colors, config)
local fname = extra .. (info.subdir and "/" .. info.subdir or "") .. "/" .. palette .. "." .. info.ext
colors["_upstream_url"] = "https://github.com/AstroNvim/astrotheme/raw/main/extras/" .. fname
colors["_style_name"] = "AstroTheme " .. palette_name
colors["_style_name"] = palette_name
colors["_style"] = palette
print("[write] " .. fname)
M.write("extras/" .. fname, plugin.generate(colors, highlights, config))
Expand Down

0 comments on commit 0e7f5e2

Please sign in to comment.