|
|
|
@ -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
|
|
|
|
|