Skip to content

Commit

Permalink
fix: also shim in compile()
Browse files Browse the repository at this point in the history
  • Loading branch information
nekowinston committed Mar 10, 2024
1 parent e48b0a1 commit ef62768
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/catppuccin-vscode/src/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,11 @@ export const compile = (
overrides: Partial<ThemeOptions> = {},
) => {
const options = { ...defaultOptions, ...overrides };
return compileTheme(flavor, options);
const compiled = compileTheme(flavor, options);

// like in the original file, we need to shim the name for the Shiki theme
return {
...compiled,
name: `catppuccin-${flavor}`,
};
};

0 comments on commit ef62768

Please sign in to comment.