fix(readme): Wrong styles type

dev
nullchilly 2 years ago
parent 3e49123375
commit 568e4d16cc

@ -239,11 +239,11 @@ This setting manages the ability to dim the inactive splits/windows/buffers disp
Handles the style of general hi groups (see `:h highlight-args`): Handles the style of general hi groups (see `:h highlight-args`):
- `comments`: (String) changed the style of the comments. - `comments`: (Table) changed the style of the comments.
- `functions`: (String) changed the style of the functions. - `functions`: (Table) changed the style of the functions.
- `keywords`: (String) changed the style of the keywords. - `keywords`: (Table) changed the style of the keywords.
- `strings`: (String) changed the style of the strings. - `strings`: (Table) changed the style of the strings.
- `variables`: (String) changed the style of the variables. - `variables`: (Table) changed the style of the variables.
#### Integrations #### Integrations
@ -356,11 +356,6 @@ Plug 'catppuccin/nvim', {'as': 'catppuccin', 'do': 'CatppuccinCompile'}
Packer.nvim Packer.nvim
```lua ```lua
-- Enable packer auto reload
require("packer").init {
auto_reload_compiled = true,
}
-- Create an autocmd `User PackerCompileDone` to update it every time packer is compiled -- Create an autocmd `User PackerCompileDone` to update it every time packer is compiled
vim.api.nvim_create_autocmd("User", { vim.api.nvim_create_autocmd("User", {
pattern = "PackerCompileDone", pattern = "PackerCompileDone",
@ -369,6 +364,12 @@ vim.api.nvim_create_autocmd("User", {
end, end,
}) })
``` ```
```lua
-- Enable auto reload compiled in packer setting
require("packer").init {
auto_reload_compiled = true,
}
```
Vim-plug Vim-plug
@ -381,13 +382,13 @@ Acknowledge: [nightfox.nvim#compile](https://github.com/EdenEast/nightfox.nvim#c
### Extra ### Extra
##### Get catppuccin palette ##### Get catppuccin colors
```lua ```lua
require("catppuccin.palettes").get_palette() require("catppuccin.palettes").get_palette()
``` ```
> Returns a table where the key is the name of the color and the value is its hex value. Will returns a table where the key is the name of the color and the value is its hex value.
#### Overwriting highlight groups #### Overwriting highlight groups
@ -450,7 +451,6 @@ vim.api.nvim_create_autocmd("ColorScheme", {
callback = function() callback = function()
local colors = require("catppuccin.palettes").get_palette() local colors = require("catppuccin.palettes").get_palette()
-- do something with colors -- do something with colors
print "ok"
end, end,
}) })
``` ```

Loading…
Cancel
Save