-- require("catppuccin").setup({ -- flavour = "auto", -- latte, frappe, macchiato, mocha -- background = { -- :h background -- light = "latte", -- dark = "mocha", -- }, -- transparent_background = false, -- disables setting the background color. -- float = { -- transparent = false, -- enable transparent floating windows -- solid = false, -- use solid styling for floating windows, see |winborder| -- }, -- term_colors = false, -- sets terminal colors (e.g. `g:terminal_color_0`) -- dim_inactive = { -- enabled = false, -- dims the background color of inactive window -- shade = "dark", -- percentage = 0.15, -- percentage of the shade to apply to the inactive window -- }, -- no_italic = false, -- Force no italic -- no_bold = false, -- Force no bold -- no_underline = false, -- Force no underline -- styles = { -- Handles the styles of general hi groups (see `:h highlight-args`): -- comments = { "italic" }, -- Change the style of comments -- conditionals = { "italic" }, -- loops = {}, -- functions = {}, -- keywords = {}, -- strings = {}, -- variables = {}, -- numbers = {}, -- booleans = {}, -- properties = {}, -- types = {}, -- operators = {}, -- -- miscs = {}, -- Uncomment to turn off hard-coded styles -- }, -- lsp_styles = { -- Handles the style of specific lsp hl groups (see `:h lsp-highlight`). -- virtual_text = { -- errors = { "italic" }, -- hints = { "italic" }, -- warnings = { "italic" }, -- information = { "italic" }, -- ok = { "italic" }, -- }, -- underlines = { -- errors = { "underline" }, -- hints = { "underline" }, -- warnings = { "underline" }, -- information = { "underline" }, -- ok = { "underline" }, -- }, -- inlay_hints = { -- background = true, -- }, -- }, -- color_overrides = {}, -- custom_highlights = {}, -- default_integrations = true, -- auto_integrations = false, -- integrations = { -- -- cmp = true, -- -- gitsigns = true, -- -- nvimtree = true, -- notify = false, -- mini = { -- enabled = true, -- indentscope_color = "", -- }, -- -- For more plugins integrations please scroll down (https://github.com/catppuccin/nvim#integrations) -- blink_cmp = { -- style = 'bordered', -- }, -- }, -- }) -- 1. Configure TokyoNight to integrate with external plugins automatically require("tokyonight").setup({ style = "storm", -- Options: "storm", "moon", "night", "day" transparent = false, terminal_colors = true, -- Auto-set terminal colors to match TokyoNight -- Force UI elements like floating windows and sidebars to match main editor background styles = { comments = { italic = true }, keywords = { italic = true }, sidebars = "dark", -- Sets File Explorers (NvimTree, Oil) background floats = "dark", -- Sets Floating Windows (fff, Telescope, LspInfo) background }, -- Enable explicit integration flags for popular plugins plugins = { all = true, -- Automatically enables styling rules for all supported plugins }, }) -- setup must be called before loading vim.cmd.colorscheme "tokyonight-night" local colors = require("tokyonight.colors").setup() -- pass in any of the config options as explained above local util = require("tokyonight.util") -- aplugin.background = colors.bg_dark -- aplugin.my_error = util.lighten(colors.red1, 0.3) -- number between 0 and 1. 0 results in white, 1 results in red1