|
|
@ -329,31 +329,18 @@ By default catppuccin writes the compiled results into the system's cache direct
|
|
|
|
:CatppuccinClean # Delete compiled file
|
|
|
|
:CatppuccinClean # Delete compiled file
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
- It's recommended to add `:CatppuccinCompile` to post-install/update hooks. For example:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**Packer.nvim**
|
|
|
|
**Packer.nvim**
|
|
|
|
|
|
|
|
|
|
|
|
```lua
|
|
|
|
```lua
|
|
|
|
|
|
|
|
- It's recommended to add `:CatppuccinCompile` to post-install/update hooks. For example:
|
|
|
|
use {
|
|
|
|
use {
|
|
|
|
"catppuccin/nvim",
|
|
|
|
"catppuccin/nvim",
|
|
|
|
as = "catppuccin",
|
|
|
|
as = "catppuccin",
|
|
|
|
run = "CatppuccinCompile",
|
|
|
|
run = "CatppuccinCompile",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**Vim-plug**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```lua
|
|
|
|
|
|
|
|
Plug 'catppuccin/nvim', {'as': 'catppuccin', 'do': 'CatppuccinCompile'}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- To auto-compile everytime you update your config:
|
|
|
|
- To auto-compile everytime you update your config:
|
|
|
|
|
|
|
|
|
|
|
|
**Packer.nvim**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Create an autocmd `User PackerCompileDone` to update it every time packer is compiled:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```lua
|
|
|
|
|
|
|
|
vim.api.nvim_create_autocmd("User", {
|
|
|
|
vim.api.nvim_create_autocmd("User", {
|
|
|
|
pattern = "PackerCompileDone",
|
|
|
|
pattern = "PackerCompileDone",
|
|
|
|
callback = function()
|
|
|
|
callback = function()
|
|
|
@ -364,9 +351,10 @@ vim.api.nvim_create_autocmd("User", {
|
|
|
|
|
|
|
|
|
|
|
|
**Vim-plug**
|
|
|
|
**Vim-plug**
|
|
|
|
|
|
|
|
|
|
|
|
Auto compile on save if catppuccin config is in `init.vim`
|
|
|
|
```bash
|
|
|
|
|
|
|
|
# Create an autocmd `User PackerCompileDone` to update it every time packer is compiled:
|
|
|
|
```lua
|
|
|
|
Plug 'catppuccin/nvim', {'as': 'catppuccin', 'do': 'CatppuccinCompile'}
|
|
|
|
|
|
|
|
# Auto compile on save if catppuccin config is in `init.vim`
|
|
|
|
autocmd BufWritePost init.vim :CatppuccinCompile
|
|
|
|
autocmd BufWritePost init.vim :CatppuccinCompile
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|