chore(readme): Remove api

dev
nullchilly 2 years ago
parent 9a8f0d3756
commit 7f718802b6

@ -376,9 +376,7 @@ Acknowledge: [nightfox.nvim#compile](https://github.com/EdenEast/nightfox.nvim#c
### Extra ### Extra
##### Modules ##### Get catppuccin palette
- `colors`
```lua ```lua
require("catppuccin.palettes").get_palette() require("catppuccin.palettes").get_palette()
@ -450,7 +448,7 @@ Instead of `after_loading` hook, you can use autocmd event like this:
vim.api.nvim_create_autocmd("User", { vim.api.nvim_create_autocmd("User", {
pattern = "CatppuccinLoaded", pattern = "CatppuccinLoaded",
callback = function() callback = function()
local colors = require("catppuccin.api.colors").get_colors() local colors = require("catppuccin.palettes").get_palette()
-- do something with colors -- do something with colors
end end
}) })

Loading…
Cancel
Save