From 0adcc2aaebd4b16f0af971dc44393c8433345f9e Mon Sep 17 00:00:00 2001 From: Robby Russell Date: Tue, 24 Nov 2026 16:49:38 -0800 Subject: [PATCH] fix(colorize): pass chroma formatter through to cless cless re-runs colorize_cat via LESSOPEN in a fresh zsh -c, which only received ZSH_COLORIZE_TOOL and ZSH_COLORIZE_STYLE, so it ignored ZSH_COLORIZE_CHROMA_FORMATTER and always used chroma's default. Closes #12650 Co-authored-by: alexzhyk <3123186+Pertak@users.noreply.github.com> Co-authored-by: Ininsico <157946121+Ininsico@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 --- plugins/colorize/colorize.plugin.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/colorize/colorize.plugin.zsh b/plugins/colorize/colorize.plugin.zsh index c49acd864..68b620b82 100644 --- a/plugins/colorize/colorize.plugin.zsh +++ b/plugins/colorize/colorize.plugin.zsh @@ -90,6 +90,7 @@ colorize_less() { # (e.g. when not scrolled to the bottom) while already the next file will be displayed. local LESSOPEN="| zsh -c 'source \"$ZSH_COLORIZE_PLUGIN_PATH\"; \ ZSH_COLORIZE_TOOL=$ZSH_COLORIZE_TOOL ZSH_COLORIZE_STYLE=$ZSH_COLORIZE_STYLE \ + ZSH_COLORIZE_CHROMA_FORMATTER=$ZSH_COLORIZE_CHROMA_FORMATTER \ colorize_cat %s 2> /dev/null'" # LESSCLOSE will be set to prevent any errors by executing a user script