Skip to content

Point catppuccin theme at its flavour colorscheme - #12864

Merged
bjarneo merged 2 commits into
omacom:quattrofrom
anandude:fix-catppuccin-colorscheme
Sep 23, 2026
Merged

bjarneo merged 2 commits into
omacom:quattrofrom
anandude:fix-catppuccin-colorscheme

Conversation

@anandude

@anandude anandude commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #12721.

Problem

With the stock catppuccin theme active, Neovim (LazyVim) can fail to start: Vim:E185: Cannot find color scheme Childhood. themes/catppuccin/neovim.lua sets colorscheme = "catppuccin-nvim", a name that only exists in newer catppuccin/nvim checkouts (added upstream in March 2026) — older pins such as the one in the report only provide catppuccin{,-latte,-frappe,-macchiato,-mocha}.

Change

  • themes/catppuccin/neovim.lua: catppuccin-nvim → catppuccin-mocha (the base flavour), mirroring how the sibling catppuccin-latte theme already uses its flavour-qualified name. catppuccin-mocha loads on old and new plugin checkouts alike.
  • test/shell.d/theme-neovim-colorscheme-test.sh: asserts the newer-only name appears in no stock theme and that catppuccin points at its flavour scheme.

Verification

  • New test passes with the fix and fails against the pre-fix file
  • ./test/all: CLI suite fully green; shell suite shows only the 5 pre-existing environment failures (missing omarchy-pkgs checkout, omasnap, Qt portal) — confirmed identical on the clean tree. (runtime-smoke-test flaked once under full-suite load in both directions; it has no theme interaction and passes consistently in isolation.)

Upgrade note

If Catppuccin is already your active theme and the pending refresh migration has already run on your machine, the staged copy keeps the old name — re-apply once with omarchy theme set catppuccin after updating. Happy to add a gated migration for that cohort instead if preferred.

@llstrk

llstrk commented Sep 23, 2026

Copy link
Copy Markdown

Already-staged themes need a conditional upgrade note.

Verified: catppuccin-mocha loads the plugin's mocha scheme with both the issue's older plugin commit (8c4125e) and newer upstream (edefef7) in headless Neovim 0.12.5. The new shell test passes on the PR and rejects the baseline theme.

Plugin checkout catppuccin-nvim (baseline) catppuccin-mocha (PR)
8c4125e E185: scheme not found Loads mocha
edefef7 Loads mocha Loads mocha

Already-applied themes can retain the old name

omarchy-theme-set copies the stock theme into active user state. Neovim's standard theme link reads that staged copy, not the packaged template.

Source-derived upgrade paths, assuming no overriding user theme or separate refresh:

Update installs corrected stock template
  migration 1787481315 still pending -> refreshes active theme -> new name
  migration already completed       -> staged copy unchanged -> old name

Impact: A user with Catppuccin already selected, an older plugin checkout, and the existing refresh migration already completed can still encounter E185 after updating. The PR adds no new re-staging step. This is an incomplete repair for that cohort, not a regression in the new colorscheme name.

Suggested change: Document omarchy theme set catppuccin as the post-update remedy for this case. If automatic repair is intended, consider a narrowly gated migration that refreshes the active Catppuccin theme while preserving user overlays. Users with the existing refresh migration still pending already receive the corrected template during update.

Documentation correction: The new test's “no longer ships” / “removed” explanation is reversed: upstream added catppuccin-nvim in March 2026, and newer upstream still provides it. Describe catppuccin-mocha as compatible with older plugin checkouts that predate that name.


Review information

Test scope: Head 4e404da. Focused shell test with an explicitly transplanted/adapted baseline control; headless Neovim with the plugin placed directly on its runtime path. No complete LazyVim startup, visual UI, live update or migration execution. The staged-theme observation is source-based.

Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review.

Automated AI review: Astra Medium initial inspection and synthesis; independent Opus 5.5 High and GPT 6 Sol Xhigh technical reviews, followed by source and targeted-evidence adjudication and a fresh Astra Medium editorial check.

@anandude

Copy link
Copy Markdown
Contributor Author

You are right on the history — upstream added catppuccin-nvim in March 2026, so it is the older checkouts that lack it, not newer ones missing it. Fixed the test wording in 8d6a738 and corrected the PR body, which repeated the same backwards claim.

On the staged copy: I left the repair manual and put the note in the PR body (omarchy theme set catppuccin re-applies it). A migration re-running theme-set mid-update felt too heavy for the cohort (background transitions, shell restarts), but say the word if you want the gated version and I will add it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LazyVim fails to start: catppuccin theme references removed colorscheme 'catppuccin-nvim'

4 participants