fix(readme): Missing palette

dev
nullchilly 2 years ago
parent 806fffc4e3
commit a05ca14360

@ -463,24 +463,22 @@ 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()
Comment = { fg = colors.overlay1 }, colors.none = "NONE"
LineNr = { fg = colors.overlay1 }, require("catppuccin").setup {
CursorLine = { bg = colors.none }, custom_highlights = {
CursorLineNr = { fg = colors.lavender }, Comment = { fg = colors.overlay1 },
DiagnosticVirtualTextError = { bg = colors.none }, LineNr = { fg = colors.overlay1 },
DiagnosticVirtualTextWarn = { bg = colors.none }, CursorLine = { bg = colors.none },
DiagnosticVirtualTextInfo = { bg = colors.none }, CursorLineNr = { fg = colors.lavender },
DiagnosticVirtualTextHint = { bg = colors.none }, DiagnosticVirtualTextError = { bg = colors.none },
}, DiagnosticVirtualTextWarn = { bg = colors.none },
DiagnosticVirtualTextInfo = { 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