From e412bf67e7bacda906249e3a43a2f702646f0d19 Mon Sep 17 00:00:00 2001 From: nullchilly Date: Sat, 16 Jul 2022 12:17:34 +0700 Subject: [PATCH] chore(readme): Merge plugin manager section --- README.md | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 6e43ddd..ffa8c48 100644 --- a/README.md +++ b/README.md @@ -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 ```