Replies: 2 comments 7 replies
-
This is actually quite funny for me. A few years ago tokyonight did not do it this way (had everything in one file) and we had everything in separate files. Ended up moving everything into one file to follow tokyonight's example and some other reasons. Either way, happy with @5-pebbles and @DOD-101 making the call on this one. |
Beta Was this translation helpful? Give feedback.
-
After doing some minimal testing, I am completely in favor of this. Even at, 10000 (yes, ten thousand) files being loaded and the return values being inserted into a table the theme still loads in sub To be fair I have a pretty beefy setup (and an SSD), which not everyone does, but seeing as catppuccin only has 69 Integrations. I really don't think this is an issue. (at least not in our lifetimes lol) The argument of maintainability and readability far out ways any (mostly theoretical) performance implications. |
Beta Was this translation helpful? Give feedback.
-
After using this theme for some time with quite a few tweaks and a couple of PR's merged, I would like to propose breaking the integrations down into different files under the
integrations
folder.The main reasons would be maintainability as future plugins can be added just by adding a new file and adding the corresponding field to the config file and low barrier to entry for new PR's merging for new plugins that might arise in the future.
As an example, 2 of the most popular colorschemes (Catppuccin & Tokyonight) both implement it this way.
Additionally, I believe implementing types into the codebase would be great for ease of configuration as well as future development. Again, I refer to the most popular colorschemes to copy what they have done structure-wise:
https://github.com/catppuccin/nvim/blob/main/lua/catppuccin/types.lua
I am more than happy to make a PR with the proposed changes and continue discussion over there.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions