You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using kitty terminal, certain colors added to the color_overrides config section are shown incorrectly. For example, setting text = "#dedeff" results in yellow text being shown.
Cause: The workaround for kitty transparency implementation in lua/catppuccin/palettes/init.lua treats the input color as a single integer, and incrementing this integer can cause the green and blue channels to roll over to 0 if they are already at max brightness.
Observe the text color is yellow, rather than white
Expected behavior
Displayed colors should match what is defined in color_overrides
Actual behavior
Displayed colors are incorrect when defining colors in color_overrides that end in ff or ffff
Repro
-- DO NOT change the paths and don't remove the colorschemelocalroot=vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .reprofor_, nameinipairs({ "config", "data", "state", "cache" }) dovim.env[("XDG_%s_HOME"):format(name:upper())] =root.."/" ..nameend-- bootstrap lazylocallazypath=root.."/plugins/lazy.nvim"ifnotvim.loop.fs_stat(lazypath) thenvim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath })
endvim.opt.runtimepath:prepend(lazypath)
-- install pluginslocalplugins= {
{
"catppuccin/nvim",
name="catppuccin",
opts= {
color_overrides= {
all= {
text="#dedeff", -- This will be displayed incorrectly as #dede00-- text = "#dedefe", -- This will be displayed correctly as #dedeff
}
}
},
},
}
require("lazy").setup(plugins, {
root=root.."/plugins",
})
vim.cmd.colorscheme("catppuccin")
-- add anything else here
The text was updated successfully, but these errors were encountered:
Description
When using kitty terminal, certain colors added to the
color_overrides
config section are shown incorrectly. For example, settingtext = "#dedeff"
results in yellow text being shown.Cause: The workaround for kitty transparency implementation in lua/catppuccin/palettes/init.lua treats the input color as a single integer, and incrementing this integer can cause the green and blue channels to roll over to 0 if they are already at max brightness.
Neovim version
Terminal and multiplexer
kitty 0.32.1
Catppuccin version / branch / rev
main
Steps to reproduce
nvim -u repro.lua
in kitty terminalExpected behavior
Displayed colors should match what is defined in
color_overrides
Actual behavior
Displayed colors are incorrect when defining colors in
color_overrides
that end inff
orffff
Repro
The text was updated successfully, but these errors were encountered: