-
-
Notifications
You must be signed in to change notification settings - Fork 319
Description
Heya! After #169 was opened a bunch of changes have taken place. Some of them have arrived earlier to the main branch, however most still live under the dev branch. Not all of the interfaces were changed but the ones that were might break your config if not updated.
So, here is this issue to aid in those situations. In the meantime, while I finish reworking the whole plugin you may stay in the main branch and follow this issue to be up-to-date with everything.
Note 1: the
devbranch can be merged intomainat any time! beware!
Note 2: some new features are subject to change while they are still under development
Heads-ups!
- invalid key: bold,italic #177: a commit was amended and because of that I had force push it to the repo. If your plugin fails to update (because most plugin managers mishandle this kind of thing): delete the plugin's directory and reinstall it.
- refactor(performance): Improve nvim_set_hl #176: the way highlights are handled changed, most notably the
styleproperty of the highlights. Instead of using commas to separate them (e.g.style = "italic,bold,underline"), please use a Lua table. Note that if you don't want any highlights just pass an empty table{}. For the average user's conf this would mean that:
styles = {
comments = { "italic" },
conditionals = { "italic" },
loops = {},
},This also applies to custom highlights. (Note: in this case you may either pass an empty table to style for none, or not pass style in the first place)
custom_highlights = {
TSConstBuiltin = { fg = cp.peach, style = {} },
TSConstant = { fg = cp.sky },
TSComment = { fg = cp.surface2, style = { "italic" } }
}- c41a627: the code-base was refactored and now:
palettes: holds the palettes and the interface to fetch themutils: general utilities for handling data and color propertiesgroups: holds the highlights groups and integrationslib: main code. Holds thecompiler,highlighter,mapper,uiandhsluv
So please don't forget to change your calls to any of Catppuccin's modules!
- This ain't much of a breaking feature but since the new update users are now able to pre-compile their configs to improve startup speed. Check it out!
- Startuptime stat: 0.7ms
012.793 000.096 000.096: require('catppuccin')
012.835 000.035 000.035: require('catppuccin.config')
013.356 000.005 000.005: require('vim.F')
014.246 000.669 000.669: sourcing /home/nullchilly/.local/share/nvim/site/pack/packer/start/theme/colors/catppuccin.lua