Replies: 17 comments
|
So, theres 2 problems here, interacting in a confusing way. First, this line may not be doing what you think it does. Your spec triggers ON (or, well, right before) In fact, you do call it somewhere else. You call it here. Which, should actually be moved to the end of that file rather than the top, so that it is after lze knows about the colorscheme plugin. That's my bad I think, but in my defense it did work the way I had it in the template XD Which brings us to the second problem. You call it with Try addressing these, and reporting back if it helps or not. Also, as an aside, And, to be completely honest, unless you install multiple colorschemes and change colorschemes at runtime, lazy loading colorscheme is probably not really worth the effort, you want to load it right away usually anyway, and currently you are, so take that for what you will. If you really want to lazy load colorscheme still, you could try also adding this spec, to trigger whichever other colorscheme spec you have {
"load_colorscheme_spec",
load = function()
vim.cmd.colorscheme(nixCats("colorscheme"))
end,
event = "UIEnter",
}But generally this is not adviseable, as setting the colorscheme before other plugins are setup is generally best, as certain things will sometimes grab highlight colors and not update when the colorscheme does. Personally, I load mine at startup. |
|
I did as you advised, but I still get the same result, about lazy = false, I tried this but it didn't bring any result either |
|
meflove/angeldust-nixCats@2e0f33c In this commit, you tried moving the config out of the spec to load it eagerly. However, in the same commit, you also removed catppuccin-nvim from your startupPlugins section of your categoryDefinitions, leaving only where you added it to optionalPlugins. This means that it was only being installed to the opt directory, meaning you would need to call packadd first. But better would be to install it as a startupPlugins if the plan has changed to loading it eagerly Also, the correct name for the lze spec, although it has now been removed entirely, was indeed |
|
i tried rebuild with ur commit, but i still get the same result angeldust-nixCats = {
url = "github:meflove/angeldust-nixCats/1a5bd442e9aa754e90db5e69c6da9b4eaaafc369";
};
|
|
Have you tried this in files that are not python? Im running it and it appears to be working fine when Im browsing your config with it? For both nix and lua code? I can go try a python project I guess? |
|
hmmmm Well its definitely happening in python |
|
I see you also have a rust setup lets see if it also happens for rust or if its just python |
|
It seems to be just python? Confirm if this is just python for you as well? |
|
If it is just python for you like it seems to be for me, Im not 100% what to do about it but your setup looks like you at least somewhat know how python LSP works, so maybe you would be able to debug that, and its also possible it is a bug in catppuccin in how its making colors for python lsp tokens |
|
I might have found the issue You have this in python lsp setup I commented it out and built the config and it seems to work in python files now. IDK what that line does, but it sounded fishy and when I commented it out, I no longer seem to be able to recreate the colorscheme bug. |
|
As I see it, yes, the problem is only with Python. |
|
ok, so, more testing shows that if I add this line back the issue comes back as well So, IDK what this does, but it seems to be the problem. |
|
Interesting, I had a problem with ty and I tried to fix it using this option, I tried disabling it and everything worked |
|
Well, it also seems to be the source of the colorscheme not working. Again, I have no idea what that does and haven't done enough python to be any more useful than you are at debugging the python lsp But, because it was only python with the issue, I went there to debug, and it seems to be that line. On the bright side for me, although it doesn't help you much, the way I am loading it in the eager version has no connection to lze whatsoever and it still happens, and the python lsp does still seem to be loading on the python filetype event as requested. So, its not lze's fault at least XD Im going to convert this to a discussion? If you have more issues with lze feel free to open another issue, but it seems this one is not lze's fault. I hope I was at least able to be helpful in explaining how to set up the colorscheme part. |
|
Yes, thanks for your help :) |
|
Oh, also, let me know when you are done with my fork, so I can delete it lol |


Uh oh!
There was an error while loading. Please reload this page.
I use catppuccin.nvim, when I open the first file everything works fine, but when I open several files, no matter from the terminal or through snacks.explorer, the colorscheme does not work as it should. my config
first file
second file
third file (opened from explorer)
All reactions