@ -299,7 +299,7 @@ Catppuccin is a highly customizable and configurable colorscheme. This does howe
Catppuccin can pre compute the results of your configuration and store the results in a compiled lua file. We use these precached values to set it's highlights.
Catppuccin can pre compute the results of your configuration and store the results in a compiled lua file. We use these precached values to set it's highlights.
To enable compile enables it in setup function:
- To enable compile enables it in setup function:
```lua
```lua
compile = {
compile = {
@ -310,36 +310,54 @@ compile = {
```
```
By default catppuccin writes the compiled results into the system's cache directory.
By default catppuccin writes the compiled results into the system's cache directory.
Catppuccin provides these commands to work with the catppuccin compiler.
- Catppuccin provides these commands to work with the catppuccin compiler.
```bash
```bash
:CatppuccinCompile # Create/update the compile file
:CatppuccinCompile # Create/update the compile file
:CatppuccinClean # Delete compiled file
:CatppuccinClean # Delete compiled file
```
```
It's recommended to add `:CatppuccinCompile` to run everytime you update your config. For example:
- It's recommended to add `:CatppuccinCompile` to post-install/update hooks. For example:
#### Packer.nvim
```lua
```lua
use {
use {
"catppuccin/nvim",
"catppuccin/nvim",
as = "catppuccin",
as = "catppuccin",
run = ":CatppuccinCompile",
run = "CatppuccinCompile",
}
}
```
```
To auto-compile catppuccin after `:PackerCompile`, create an autocmd `PackerCompileDone` in User group