|
|
@ -458,11 +458,30 @@ vim.api.nvim_create_autocmd("User", {
|
|
|
|
|
|
|
|
|
|
|
|
## FAQ
|
|
|
|
## FAQ
|
|
|
|
|
|
|
|
|
|
|
|
#### [Abnormal colors](https://github.com/catppuccin/nvim/issues/182)?
|
|
|
|
#### Transparenct background tweak?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 },
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### Abnormal colors?
|
|
|
|
|
|
|
|
|
|
|
|
You need to enable [truecolor](https://wiki.archlinux.org/title/Color_output_in_console#True_color_support)
|
|
|
|
You need to enable [truecolor](https://wiki.archlinux.org/title/Color_output_in_console#True_color_support)
|
|
|
|
|
|
|
|
|
|
|
|
#### Toggle light/dark theme based on background value?
|
|
|
|
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`
|
|
|
|
The following autocmd will change the flavour to latte when you `:set background=light` and to mocha after `:set background=dark`
|
|
|
|
|
|
|
|
|
|
|
|