Skip to content

Commit

Permalink
chore(readme): Fix pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
nullchilly committed Jul 14, 2022
1 parent 5e975a3 commit a55e0bb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,11 +327,13 @@ use {
}
```

To auto-compile catppuccin after `:PackerCompile`, create an autocmd:
To auto-compile catppuccin after `:PackerCompile`, create an autocmd `PackerCompileDone` in User group

For example, if your plugin specification is in `~/.config/nvim/lua/plugins.lua` then the pattern is `plugins.lua`

```lua
vim.api.nvim_create_autocmd("User PackerCompileDone", {
pattern = "*",
pattern = "plugins.lua",
callback = function()
vim.cmd "CatppuccinCompile"
end,
Expand Down

0 comments on commit a55e0bb

Please sign in to comment.