From a05ca143608040c6806d56f25be2cfc16e827411 Mon Sep 17 00:00:00 2001 From: nullchilly Date: Sat, 16 Jul 2022 23:50:59 +0700 Subject: [PATCH] fix(readme): Missing palette --- README.md | 36 ++++++++++++++++++++---------------- lua/catppuccin/config.lua | 2 +- 2 files changed, 21 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index d830f62..aac3b57 100644 --- a/README.md +++ b/README.md @@ -463,24 +463,22 @@ vim.api.nvim_create_autocmd("User", { Add this to `custom_highlights` settings ```lua -custom_highlights = { - Comment = { fg = colors.overlay1 }, - LineNr = { fg = colors.overlay1 }, - CursorLine = { bg = colors.none }, - CursorLineNr = { fg = colors.lavender }, - DiagnosticVirtualTextError = { bg = colors.none }, - DiagnosticVirtualTextWarn = { bg = colors.none }, - DiagnosticVirtualTextInfo = { bg = colors.none }, - DiagnosticVirtualTextHint = { bg = colors.none }, -}, +local colors = require("catppuccin.palettes").get_palette() +colors.none = "NONE" +require("catppuccin").setup { + custom_highlights = { + Comment = { fg = colors.overlay1 }, + LineNr = { fg = colors.overlay1 }, + CursorLine = { bg = colors.none }, + CursorLineNr = { fg = colors.lavender }, + 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? 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! ## 💝 Thanks to diff --git a/lua/catppuccin/config.lua b/lua/catppuccin/config.lua index df2f0aa..88b7517 100644 --- a/lua/catppuccin/config.lua +++ b/lua/catppuccin/config.lua @@ -51,7 +51,7 @@ config.options = { lsp_saga = false, gitgutter = false, gitsigns = true, - telescope = false, + telescope = true, nvimtree = { enabled = true, show_root = true,