From 462639f611786593ffda2ed15f48b5dac0458c26 Mon Sep 17 00:00:00 2001 From: nullchilly Date: Sat, 16 Jul 2022 12:21:57 +0700 Subject: [PATCH] chore(readme): Fix vimscript syntax highlighting --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ffa8c48..425ca1a 100644 --- a/README.md +++ b/README.md @@ -329,18 +329,19 @@ By default catppuccin writes the compiled results into the system's cache direct :CatppuccinClean # Delete compiled file ``` +- To auto-compile everytime you update your config: **Packer.nvim** ```lua -- It's recommended to add `:CatppuccinCompile` to post-install/update hooks. For example: +-- It's recommended to add `:CatppuccinCompile` to post-install/update hooks use { "catppuccin/nvim", as = "catppuccin", run = "CatppuccinCompile", } -- To auto-compile everytime you update your config: +# Create an autocmd `User PackerCompileDone` to update it every time packer is compiled: vim.api.nvim_create_autocmd("User", { pattern = "PackerCompileDone", callback = function() @@ -351,8 +352,8 @@ vim.api.nvim_create_autocmd("User", { **Vim-plug** -```bash -# Create an autocmd `User PackerCompileDone` to update it every time packer is compiled: +```vim +# It's recommended to add `:CatppuccinCompile` to post-install/update hooks Plug 'catppuccin/nvim', {'as': 'catppuccin', 'do': 'CatppuccinCompile'} # Auto compile on save if catppuccin config is in `init.vim` autocmd BufWritePost init.vim :CatppuccinCompile