-
Notifications
You must be signed in to change notification settings - Fork 481
BREAKING CHANGE: Catppuccin is upgraded to v0.2, but color palette is preserved (mocha) #163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This would be the color palette used for restoring the original (i.e. v0.1) colorscheme.
(For use with transparent background.)
|
@Jint-lzxy Heya, maintainer of catppuccin here, I saw your pr and thought it would be a good idea to include per flavour custom highlights: https://github.com/catppuccin/nvim#overwriting-highlight-groups Note that Here is a sneak peak, hope this is useful to you 👍🏻 local ucolors = require "catppuccin.utils.colors"
local latte = require("catppuccin.palettes").get_palette "latte"
local frappe = require("catppuccin.palettes").get_palette "frappe"
local macchiato = require("catppuccin.palettes").get_palette "frappe"
local mocha = require("catppuccin.palettes").get_palette "mocha"
vim.g.catppuccin_flavour = "macchiato"
local colors = require("catppuccin.palettes").get_palette() -- return vim.g.catppuccin_flavour palette
require("catppuccin").setup {
highlight_overrides = {
all = {
CmpBorder = { fg = "#3e4145" },
},
latte = {
Normal = { fg = ucolors.darken(latte.base, 0.7, latte.mantle) },
},
frappe = {
TSConstBuiltin = { fg = frappe.peach, style = {} },
TSConstant = { fg = frappe.sky },
TSComment = { fg = frappe.surface2, style = { "italic" } },
},
macchiato = {
LineNr = { fg = macchiato.overlay1 }
},
mocha = {
Comment = { fg = mocha.flamingo },
},
},
} |
|
Thanks @nullchilly :) Great suggestion 👍 btw, thank you for the great efforts in offering us this gorgeous theme! Recent changes have made it even more intuitive and easier to use! |
|
Hey, @Jint-lzxy , your efforts for integrating the theme into nvimdots is fantastic! Hope it will be finished quickly! I can't wait to use the new version theme. |
|
Thanks @jczhang02 :) I was working on base hl configs for nvim itself recently, which involves modification of various colors and adjustment for v0.2's new highlight groups (so that they won't conflict with old hls), but everything is still on track! I'll finish this asap 👍 |
|
@ayamir 可以帮忙先测试和review一下嘛~(康康有啥问题),现在绝大多数的更改都已经完成啦
建议先不要merge,还有一些细枝末节的更改和确认没做~ 启动时间在我的配置下没有很大的变化(甚至还快了些,因为catppuccin优化了项目结构),使用 一些问题
Q&A
local function getModifiedPalette()
|
|
很棒的pr! 我也会去测试一到两天,看看有什么问题没有。
|
|
@ayamir @jczhang02 I plan to add a hook that could automatically compile Catppuccin when Packer compiles, so as to avoid unnecessary issues. What's your opinion? / 我打算加一个 Code: vim.api.nvim_create_autocmd("User", {
pattern = "PackerCompileDone",
callback = function()
vim.cmd "CatppuccinCompile"
vim.defer_fn(function()
vim.cmd "colorscheme catppuccin"
end, 0) -- Deferred for live reloading
end
}) |
jczhang02
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic work! I reviewed commits and set to normal comment wait for @ayamir 's review.
|
The appearance is ok, I can't differ the old one with this.
Thanks for your awesome PR, I will merge it after you add hook function. |
|
@ayamir We're all set 👍
|
|
@Jint-lzxy This is also an option local packer = vim.api.nvim_create_augroup("Catppuccin", { clear = true })
vim.api.nvim_create_autocmd("User", {
group = packer,
pattern = "PackerCompileDone",
callback = function()
require("catppuccin").compile()
vim.defer_fn(function() vim.cmd "colorscheme catppuccin" end, 0)
end,
}) |
|
Thanks @nullchilly 👍 |
For easy switch between enabling / disabling this feature.
BREAKING CHANGE: Catppuccin is upgraded to v0.2, but color palette is preserved (mocha)
BREAKING CHANGE: Catppuccin is upgraded to v0.2, but color palette is preserved (mocha)





Once finished and merged, this would close #159
TODOs
Palettes
Light (a.k.a latte)pendingIntegrations
Additional Information
What is the current state of this PR?
How come?
Why making these changes?
When will this PR be marked as ready for review?
What files (or lines) will be changed?
lua/modules/ui/config.lua, a tiny exception is for dapui (atlua/modules/editor/config.lua), since we need to override nvim-dap's default highlight groups, AFTER requiring nvim-dap.Then, what features will be changed / added? Can you talk about this more in detail?
mochais being modified to previous v0.1 one. I choosemochabecause it has the FEWEST changes in colors.Code details?
color_overridestable.highlight_overridestable.Looks like there're many additions, will it affect performance?
Any other notes?