chore(readme): Merge plugin manager section

dev
nullchilly 2 years ago
parent 0307daeb04
commit e412bf67e7

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

Loading…
Cancel
Save