ITADN

catppuccin enables `'termguicolors'` on unsupported terminals

#981Closedsuperatomic 创建于 2026-03-21
bug
S
superatomiccommented
### Description Catppuccin will always enable `'termguicolors'`, even in unsupported terminals. ### Neovim version ```markdown NVIM v0.12.0-dev+2654-0655a359a Build type: RelWithDebInfo LuaJIT 2.1.1767980792 ``` ### Terminal and multiplexer kitty 0.43.1 ### Catppuccin version / branch / rev 384f304c8b04664c9e0091fbfb3923c5f97c1bcf ### Steps to reproduce - Launch neovim and enable catppuccin theme in a terminal without truecolor support (for example, the Linux terminal). - `:set termguicolors?` will be enabled, breaking the colors in the terminal. ### Expected behavior As of Nvim 0.10+, neovim itself will detect truecolor support and enable `'termguicolors'` as needed. When the theme is running on 0.10 or later, catppuccin should not override Nvim's automatic detection. ### Actual behavior `'termguicolors'` is always set to true, even in situations where it shouldn't. ### Repro ```Lua -- DO NOT change the paths and don't remove the colorscheme local root = vim.fn.fnamemodify("./.repro", ":p") -- set stdpaths to use .repro for _, name in ipairs({ "config", "data", "state", "cache" }) do vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name end -- bootstrap lazy local lazypath = root .. "/plugins/lazy.nvim" if not vim.loop.fs_stat(lazypath) then vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath }) end vim.opt.runtimepath:prepend(lazypath) -- install plugins local plugins = { "catppuccin/nvim", -- add any other plugins here } require("lazy").setup(plugins, { root = root .. "/plugins", }) vim.cmd.colorscheme("catppuccin-nvim") ```
关闭于 2026-03-21 2 条评论