From 88d2b1bc7e0d0d4ceaf4e633845f68c3ba312915 Mon Sep 17 00:00:00 2001 From: nullchilly Date: Thu, 14 Jul 2022 16:44:53 +0700 Subject: [PATCH] chore(readme): Add autocmd example --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 7f48b05..e065ea5 100644 --- a/README.md +++ b/README.md @@ -327,6 +327,17 @@ use { } ``` +To auto-compile catppuccin after `:PackerCompile`, create an autocmd: + +``` +vim.api.nvim_create_autocmd("User PackerCompileDone", { + pattern = "*", + callback = function() + vim.cmd ":CatppuccinCompile" + end, +}) +``` + Acknowledge: [nightfox.nvim#compile](https://github.com/EdenEast/nightfox.nvim#compile) ### Extra