fix(readme): Missing palette

dev
nullchilly 2 years ago
parent 806fffc4e3
commit a05ca14360

@ -463,7 +463,10 @@ vim.api.nvim_create_autocmd("User", {
Add this to `custom_highlights` settings Add this to `custom_highlights` settings
```lua ```lua
custom_highlights = { local colors = require("catppuccin.palettes").get_palette()
colors.none = "NONE"
require("catppuccin").setup {
custom_highlights = {
Comment = { fg = colors.overlay1 }, Comment = { fg = colors.overlay1 },
LineNr = { fg = colors.overlay1 }, LineNr = { fg = colors.overlay1 },
CursorLine = { bg = colors.none }, CursorLine = { bg = colors.none },
@ -472,15 +475,10 @@ custom_highlights = {
DiagnosticVirtualTextWarn = { bg = colors.none }, DiagnosticVirtualTextWarn = { bg = colors.none },
DiagnosticVirtualTextInfo = { bg = colors.none }, DiagnosticVirtualTextInfo = { bg = colors.none },
DiagnosticVirtualTextHint = { bg = colors.none }, DiagnosticVirtualTextHint = { bg = colors.none },
}, }
}
``` ```
#### Abnormal colors?
You need to enable [truecolor](https://wiki.archlinux.org/title/Color_output_in_console#True_color_support)
Related: [:h termguicolors](https://neovim.io/doc/user/options.html#'termguicolors'), [catppuccin/nvim#182](https://github.com/catppuccin/nvim/issues/182),
#### Use catppuccin theme for :set background=light/dark? #### Use catppuccin theme for :set background=light/dark?
The following autocmd will change the flavour to latte when you `:set background=light` and to mocha after `:set background=dark` The following autocmd will change the flavour to latte when you `:set background=light` and to mocha after `:set background=dark`
@ -494,6 +492,12 @@ vim.api.nvim_create_autocmd("OptionSet", {
}) })
``` ```
#### Abnormal colors?
You need to enable [truecolor](https://wiki.archlinux.org/title/Color_output_in_console#True_color_support)
Related: [:h termguicolors](https://neovim.io/doc/user/options.html#'termguicolors'), [catppuccin/nvim#182](https://github.com/catppuccin/nvim/issues/182),
For people who are hybrid between light and dark mode! For people who are hybrid between light and dark mode!
## 💝 Thanks to ## 💝 Thanks to

@ -51,7 +51,7 @@ config.options = {
lsp_saga = false, lsp_saga = false,
gitgutter = false, gitgutter = false,
gitsigns = true, gitsigns = true,
telescope = false, telescope = true,
nvimtree = { nvimtree = {
enabled = true, enabled = true,
show_root = true, show_root = true,

Loading…
Cancel
Save