From 2568492cd747dd997b88db6934625eeca17d3e09 Mon Sep 17 00:00:00 2001 From: Pocco81 Date: Sat, 16 Jul 2022 22:20:57 -0500 Subject: [PATCH] fix(docs): get_palette() --- README.md | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/README.md b/README.md index 0bf136a..a6be3d6 100644 --- a/README.md +++ b/README.md @@ -421,28 +421,9 @@ color_overrides = { }, ``` -#### Hooks - -Use them to execute code at certain events. These are the ones available: - -| Function | Description | -| ------------------ | ---------------------------- | -| `before_loading()` | Before loading a colorscheme | -| `after_loading()` | After loading a colorscheme | - -They can be used like so: - -```lua -local catppuccin = require("catppuccin") - -catppuccin.before_loading = function () - print("I ran before loading Catppuccin!") -end -``` - #### Autocmd -Instead of `after_loading` hook, you can use autocmd event like this: +Use this to execude code after Catppuccin's been loaded: ```lua vim.api.nvim_create_autocmd("User", {