Files
dotfiles/nvim/lua/plugins/catppuccin.lua

99 lines
3.1 KiB
Lua
Raw Normal View History

2026-01-17 21:17:29 +00:00
return {
"catppuccin/nvim",
lazy = false,
priority = 1000,
config = function()
require('catppuccin').setup {
flavour = "mocha", -- latte, frappe, macchiato, mocha
background = { -- :h background
light = "latte",
dark = "mocha",
},
transparent_background = false, -- disables setting the background color.
show_end_of_buffer = true, -- shows the '~' characters after the end of buffers
term_colors = true, -- sets terminal colors (e.g. `g:terminal_color_0`)
dim_inactive = {
enabled = true, -- dims the background color of inactive window
shade = "dark",
percentage = 0.15, -- percentage of the shade to apply to the inactive window
},
no_italic = true, -- 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 = {},
loops = {},
functions = { "italic" },
keywords = {},
strings = {},
variables = {},
numbers = {},
booleans = {},
properties = {},
types = { "bold" },
operators = {},
},
color_overrides = {},
highlight_overrides = {
all = function(colors)
return {
DashboardHeader = { fg = colors.yellow },
DashboardHotkeyFiles = { fg = colors.flamingo },
DashboardHotkeyProjects = { fg = colors.lavender },
DashboardHotkeyNotes = { fg = colors.pink },
DashboardHotkeyDotfiles = { fg = colors.sapphire },
DashboardHotkeyNotifications = { fg = colors.peach },
DashboardHotkeyQuit = { fg = colors.red },
StorageClass = { fg = colors.lavender },
Structure = { fg = colors.lavender } ,
--Identifier = { fg = colors.yellow } ,
["@lsp.type.class.c"] = { fg = colors.yellow },
["@lsp.type.class.cpp"] = { fg = colors.yellow },
["@lsp.type.enum.c"] = { fg = colors.yellow },
["@lsp.type.enum.cpp"] = { fg = colors.yellow },
["@lsp.type.macro.c"] = { fg = colors.peach },
["@lsp.type.macro.cpp"] = { fg = colors.peach },
["@function.builtin"] = { fg = colors.blue },
["@property"] = { fg = colors.rosewater },
PreProc = { fg = colors.mauve },
}
end,
mocha = function(colors)
return {
String = { fg = colors.green, bg = '#292a36' },
Special = { fg = colors.red, bg = '#292a36' },
CursorLineNr = { fg = colors.lavender, bg = '#2a2b3c' }
}
end,
latte = function(colors)
return {
--String = { fg = colors.green, bg = '#d9f3da' },
--Special = { fg = colors.red, bg = '#d9f3da' },
CursorLineNr = { fg = colors.lavender, bg = '#dce4f7' }
}
end
},
integrations = {
cmp = true,
gitsigns = true,
nvimtree = true,
treesitter = true,
notify = true,
hop = true,
noice = true,
telescope = {
enabled = true,
},
mini = {
enabled = true,
indentscope_color = "",
},
-- For more plugins integrations please scroll down (https://github.com/catppuccin/nvim#integrations)
},
}
vim.cmd([[colorscheme catppuccin]])
end,
}