Use require("catppuccin").setup() to customize the theme. Note: setup() must be called before loading the colorscheme.
Key configuration options include:
flavour: Set to "auto", "latte", "frappe", "macchiato", or "mocha".background: Define light and dark flavours.transparent_background: Boolean to disable background color.styles: Customize styles (e.g., italic) for groups like comments, conditionals, strings, etc.integrations: Enable/disable plugin integrations (e.g., cmp, gitsigns, nvimtree, mini).
require("catppuccin").setup({
flavour = "auto", -- latte, frappe, macchiato, mocha
background = {
light = "latte",
dark = "mocha",
},
transparent_background = false,
float = {
transparent = false,
solid = false,
},
term_colors = false,
dim_inactive = {
enabled = false,
shade = "dark",
percentage = 0.15,
},
no_italic = false,
no_bold = false,
no_underline = false,
styles = {
comments = { "italic" },
conditionals = { "italic" },
loops = {},
functions = {},
keywords = {},
strings = {},
variables = {},
numbers = {},
booleans = {},
properties = {},
types = {},
operators = {},
},
lsp_styles = {
virtual_text = {
errors = { "italic" },
hints = { "italic" },
warnings = { "italic" },
information = { "italic" },
ok = { "italic" },
},
underlines = {
errors = { "underline" },
hints = { "underline" },
information = { "underline" },
ok = { "underline" },
},
inlay_hints = {
background = true,
},
},
color_overrides = {},
custom_highlights = {},
auto_integrations = true,
integrations = {
cmp = true,
gitsigns = true,
nvimtree = true,
notify = false,
mini = {
enabled = true,
indentscope_color = "",
},
},
})
-- setup must be called before loading
vim.cmd.colorscheme "catppuccin-nvim"