From 568e4d16cc4553cf46acccc3d38723a78f70ba21 Mon Sep 17 00:00:00 2001 From: nullchilly Date: Sun, 17 Jul 2022 11:58:54 +0700 Subject: [PATCH] fix(readme): Wrong styles type --- README.md | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 967b5fb..90c478e 100644 --- a/README.md +++ b/README.md @@ -85,9 +85,9 @@ There are already some sane defaults that you may like, however you can change t ```lua dim_inactive = { - enabled = false - shade = "dark", - percentage = 0.15, + enabled = false + shade = "dark", + percentage = 0.15, }, transparent_background = false, term_colors = false, @@ -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`): -- `comments`: (String) changed the style of the comments. -- `functions`: (String) changed the style of the functions. -- `keywords`: (String) changed the style of the keywords. -- `strings`: (String) changed the style of the strings. -- `variables`: (String) changed the style of the variables. +- `comments`: (Table) changed the style of the comments. +- `functions`: (Table) changed the style of the functions. +- `keywords`: (Table) changed the style of the keywords. +- `strings`: (Table) changed the style of the strings. +- `variables`: (Table) changed the style of the variables. #### Integrations @@ -356,11 +356,6 @@ Plug 'catppuccin/nvim', {'as': 'catppuccin', 'do': 'CatppuccinCompile'} Packer.nvim ```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 vim.api.nvim_create_autocmd("User", { pattern = "PackerCompileDone", @@ -369,6 +364,12 @@ vim.api.nvim_create_autocmd("User", { end, }) ``` +```lua +-- Enable auto reload compiled in packer setting +require("packer").init { + auto_reload_compiled = true, +} +``` Vim-plug @@ -381,13 +382,13 @@ Acknowledge: [nightfox.nvim#compile](https://github.com/EdenEast/nightfox.nvim#c ### Extra -##### Get catppuccin palette +##### Get catppuccin colors ```lua 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 @@ -450,7 +451,6 @@ vim.api.nvim_create_autocmd("ColorScheme", { callback = function() local colors = require("catppuccin.palettes").get_palette() -- do something with colors - print "ok" end, }) ```