From 4e404da2b7d1616c6c499d66035211272d804c1e Mon Sep 17 00:00:00 2001 From: Anandakrishnan CV Date: Tue, 22 Sep 2026 08:05:58 +0530 Subject: [PATCH] Point catppuccin theme at its flavour colorscheme --- test/shell.d/theme-neovim-colorscheme-test.sh | 16 ++++++++++++++++ themes/catppuccin/neovim.lua | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100755 test/shell.d/theme-neovim-colorscheme-test.sh diff --git a/test/shell.d/theme-neovim-colorscheme-test.sh b/test/shell.d/theme-neovim-colorscheme-test.sh new file mode 100755 index 00000000..7d748616 --- /dev/null +++ b/test/shell.d/theme-neovim-colorscheme-test.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +source "$(dirname "${BASH_SOURCE[0]}")/base-test.sh" + +# The pinned catppuccin/nvim plugin no longer ships a colorscheme named +# catppuccin-nvim (its colors/ holds catppuccin{,-latte,-frappe,-macchiato,-mocha}). +# The base catppuccin theme is the mocha flavour, mirroring how +# catppuccin-latte uses its flavour-qualified name (#12721). +if matches=$(grep -rn 'catppuccin-nvim' "$ROOT/themes/"); then + fail "stock themes reference no removed catppuccin colorscheme" "$matches" +fi +pass "stock themes reference no removed catppuccin colorscheme" + +grep -Fq 'colorscheme = "catppuccin-mocha"' "$ROOT/themes/catppuccin/neovim.lua" || + fail "catppuccin theme uses its flavour colorscheme" +pass "catppuccin theme uses its flavour colorscheme" diff --git a/themes/catppuccin/neovim.lua b/themes/catppuccin/neovim.lua index f0d503f9..930d8644 100644 --- a/themes/catppuccin/neovim.lua +++ b/themes/catppuccin/neovim.lua @@ -7,7 +7,7 @@ return { { "LazyVim/LazyVim", opts = { - colorscheme = "catppuccin-nvim", + colorscheme = "catppuccin-mocha", }, }, }