dotfiles/modules/nvim/after/plugin/catppuccin.lua

125 lines
3.1 KiB
Lua

vim.g.catppuccin_flavour = "mocha"
local present, catppuccin = pcall(require, "catppuccin")
if not present then
return
end
catppuccin.setup({
transparent_background = false,
dim_inactive = {
enable = true,
shade = "dark",
percentage = 0.15,
},
styles = {
comments = { "italic" },
conditionals = { "italic" },
},
integrations = {
treesitter = true,
native_lsp = {
enabled = true,
virtual_text = {
errors = { "italic" },
hints = { "italic" },
warnings = { "italic" },
information = { "italic" },
},
underlines = {
errors = { "underline" },
hints = { "underline" },
warnings = { "underline" },
information = { "underline" },
},
},
cmp = true,
coc_nvim = false,
lsp_saga = true,
lsp_trouble = true,
nvimtree = {
enabled = true,
},
neotree = {
enabled = false,
},
which_key = true,
indent_blankline = {
enabled = true,
colored_indent_levels = true,
},
barbar = false,
dashboard = false,
fern = false,
gitgutter = false,
gitsigns = true,
hop = false,
leap = false,
lightspeed = true,
markdown = true,
neogit = true,
notify = false,
symbols_outline = true,
telekasten = false,
telescope = true,
ts_rainbow = true,
vim_sneak = false,
vimwiki = true,
},
highlight_overrides = {
all = function(colors)
return {
DashboardCenter = { fg = colors.peach },
DashboardFooter = { fg = colors.maroon },
DashboardHeader = { fg = colors.pink },
DashboardShortCut = { fg = colors.yellow },
-- custom selection highlight
Selection = { bg = colors.surface1, fg = colors.text },
-- borders
FloatBorder = { fg = colors.overlay0 },
LspInfoBorder = { link = "FloatBorder" },
NvimTreeWinSeparator = { link = "FloatBorder" },
WhichKeyBorder = { link = "FloatBorder" },
-- telescope
TelescopeBorder = { link = "FloatBorder" },
TelescopeTitle = { fg = colors.text },
TelescopeSelection = { link = "Selection" },
TelescopeSelectionCaret = { link = "Selection" },
-- pmenu
PmenuSel = { link = "Selection" },
}
end,
mocha = function(colors)
return {
Selection = { bg = "#121212", fg = colors.text },
Comment = { fg = colors.surface2, style = { "italic" } },
InlayHint = { fg = colors.surface0, style = { "italic" } },
WinSeparator = { fg = colors.surface2 },
}
end,
},
color_overrides = {
latte = {
red = "#FC3636",
maroon = "#FC3636",
peach = "#F56C1A",
yellow = "#CA8F1C",
green = "#4EB01D",
teal = "#1FB07B",
sky = "#20A9B8",
blue = "#3E7FFA",
sapphire = "#6A6DFF",
mauve = "#A651FF",
pink = "#FC3280",
text = "#5E6282",
base = "#E0EAF3",
},
mocha = {
base = "#000000",
crust = "#010101",
mantle = "#020202",
},
},
})
vim.api.nvim_command("colorscheme catppuccin")