-
Notifications
You must be signed in to change notification settings - Fork 33
Add Catppuccin Theme in Draft #286
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
base: master
Are you sure you want to change the base?
Conversation
|
The 256 color and so on is generated by AI temporarily |
|
May I ask you weather I can support all four favour of themes in one colorscheme? |
That is possible, but I wouldn't recommend that. The original theme doesn't do that either. FWIW, you could define a discriminator in the Colortemplate template, e.g.: Then define all color palettes: And finally define variants for each highlight group (the default variant corresponding to “mocha” in my example), e.g.: Then, you could choose the flavor of the color scheme by setting the global option: let g:captuccin_flavor = "latte"
colorscheme catpuccinIt's cleaner to just have four color schemes, imo. |
|
Btw, color schemes to be included in Vim should have no options. So, the above is probably ruled out if you want your color scheme to be included in Vim. |
|
Indeed we don't want to add too much complexity to the colorschemes distributed with Vim. Making one colorscheme work equally well with Did you have any feedback from the upstream maintainers? If your version is visually/functionally identical to the original one, then you should submit it in the original repo as it will make it easier for you to follow the original. |
Not yet. It seems that the vim repo is less active than the nvim repo, I am considering translate some catppuccin/nvim's features into it. |
|
Which one do you think is the best? ToolbarButton rosewater none bold |
|
@romainl Can you help me to test that problem you tested still exist? On my gVim on Windows it don't have the problem as you said. |
|
I believe he is checking it in terminal vim with 256 colors. |
Yes. Is it need to be solved?
What is the problem? @habamax Other problems are solved. |
|
I noticed that, I'm afraid it is a disign choice. If seems it as a bug, fixed like that: diff --git a/colortemplate/catppuccin.colortemplate b/colortemplate/catppuccin.colortemplate
index db1ca34..4b6626d 100644
--- a/colortemplate/catppuccin.colortemplate
+++ b/colortemplate/catppuccin.colortemplate
@@ -143,8 +143,8 @@ ModeMsg text none bold
MoreMsg blue none
NonText overlay0 none
Pmenu overlay2 mantle
-PmenuExtra overlay0 none
-PmenuExtraSel overlay0 none bold
+PmenuExtra overlay0 mantle
+PmenuExtraSel overlay0 surface0 bold
PmenuSel none surface0 bold
PmenuSbar none surface0
PmenuThumb none overlay0
|
|
Any problems about gui colors? |
|
Thanks for all your reviews. I will deal with these next Friday. |
|
We try to avoid adding non-bundled highlight groups (e.g. lsp, ale, etc). There is one colorscheme where it kind of slipped in, |
Related: vim#285, catppuccin/vim#29 Signed-off-by: Mao-Yining <mao.yining@outlook.com>
Signed-off-by: Mao-Yining <mao.yining@outlook.com>
With some small changes: CursorIM use 'mauve' instead of 'rosewater' IncSearch -> Search Signed-off-by: Mao-Yining <mao.yining@outlook.com>
Which one do you think is the best? ToolbarButton rosewater none bold ToolbarButton green surface1 bold Signed-off-by: Mao-Yining <mao.yining@outlook.com>
Signed-off-by: Mao-Yining <mao.yining@outlook.com>
Differ from neovim's setting Signed-off-by: Mao-Yining <mao.yining@outlook.com>
Differ from neovim's setting Signed-off-by: Mao-Yining <mao.yining@outlook.com>
Signed-off-by: Mao-Yining <mao.yining@outlook.com>
Signed-off-by: Mao-Yining <mao.yining@outlook.com>
Signed-off-by: Mao-Yining <mao.yining@outlook.com>
It is waiting for catppuccin/nvim#941 to be merged |
|
While you're waiting for them to merge, you could probably continue with 16 and 8 colors. Most probably vim9.2 would be released before christmas/new year, we have a chance to get this colorscheme in. |
|
@habamax While it merges into Vim, it may affect Neovim's colorschemes. How can we prevent it from loading when the catppuccin/nvim plugin is active? I tested it in Neovim and observed some visual differences. The reason I started considering merging this colorscheme is that I noticed this project plans to include popular themes like tokyonight. For themes that are still actively maintained by the community, what is the intended relationship between the built-in themes and their plugin counterparts? |
|
I have no idea about how different neovim is with loading colorschemes. In vim it is simple, if you have a colorscheme installed as a plugin it would be loaded instead as it would be found first in runtime path. However, if you think your theme might diverge from the original, It would be better to rename it, e.g. retrobox is close but a bit different to gruvbox, hence, difference in the name. |
We won't do that because the colorschemes we are building here are for vanilla Vim only. That they happen to work in Neovim is more of a happy coincidence than anything. On the same note, we try to keep the colorschemes as agnostic as we can: no attempt whatsoever is made to adapt them to third-party plugins.
The initial discussion that prompted the creation of this project effectively revolved around including a number of popular colorschemes in Vim's runtime, but we quickly found a few problems with that idea:
So we moved to a different model, where we welcome colorschemes made specifically for Vim that may or may not be inspired by popular colorschemes, not actual popular colorschemes.
That is why I told you right at the beginning that you needed to clear things with the catppuccin people on your side before anything. We can't include a "catpuccin" colorscheme if the owner of catppuccin doesn't explicitly give us the authorization and the owner of catppuccin would have to switch to the same templating system that we use in order to make it painless for everyone, them included. And they would have to align their priorities on ours, etc. That's a lot to ask so we have no plan to establish any particular relationship between us and "plugin counterparts". If the people behind catppuccin are not 100% on board, we simply can't include a "catppuccin" colorscheme. We can only include a catppuccin-inspired colorscheme with another name, developed separately from the original. |
|
Thank you. I've realized that the previous test failed due to some issues related to lazy loading. I will keep this in mind going forward and make sure to communicate thoroughly with the community |
|
hi! i represent catppuccin's core maintainers. we've discussed this internally and decided that we're happy for an upstream theme to exist with the name "catppuccin" that is inspired by, or based on, the downstream we do something similar with the helix editor; there are both upstream and downstream copies of the theme. fixes in one tend to make it to the other, but we don't put particular effort into syncing them both or even building them in the same way. the way i see this working is this builtin theme would represent our mocha (dark) and latte (light) flavours only, with no plugin support, while benefiting from being immediately available for use in vim and receiving updates from you guys. meanwhile, our plugin would have all four flavours with plugin support as it always has. does that sound reasonable to everyone? we're eager to hear your feedback. |
Signed-off-by: Mao-Yining <mao.yining@outlook.com>
sounds good to me. |
Signed-off-by: 毛逸宁 <mao.yining@outlook.com>
|
@habamax Could you told me what should I do for 8 colors? It sounds the same as 16 colors on my MS-Windows' terminal. |
Signed-off-by: 毛逸宁 <mao.yining@outlook.com>
|
Signed-off-by: 毛逸宁 <mao.yining@outlook.com>
From catppuccin/nvim#941 Signed-off-by: Mao-Yining <mao.yining@outlook.com>
Signed-off-by: Mao-Yining <mao.yining@outlook.com>
Signed-off-by: Mao-Yining <mao.yining@outlook.com>
|
Gui and 256 looks good to me. |
|
Hi @romainl, could you double check 256 and gui variants? |
Yeah, I've just installed the colorscheme and will test the 256c all day and tomorrow. I will do spot checks in the MacVim GUI ASAP but that's not my main driver so it won't be as thorough. update 256c/dark
256c/light
|






































Related: #285, catppuccin/vim#29