catppuccin: various fixes to make transparent background look better

This commit is contained in:
Ryan El Kochta 2025-04-19 17:21:06 -04:00
parent 8f5019ad8d
commit 0248f2e7ed
3 changed files with 21 additions and 3 deletions

View file

@ -1,9 +1,18 @@
-- Set colorscheme to dracula
vim.cmd[[colorscheme catppuccin]]
-- Enable for lualine as well
-- disable transparent background for lualine
local custom_catppuccin = function ()
-- Use catppuccin's internal "utils" lualine theme; this isn't ideal,
-- but for whatever reason, returning require("lualine.themes.catppuccin")
-- leads to lualine light/dark theme not changing automatically
local catppuccin = require("catppuccin.utils.lualine")(require("catppuccin").flavour)
local palette = require("catppuccin.palettes").get_palette()
catppuccin.normal.c.bg = palette.mantle
return catppuccin
end
require("lualine").setup {
options = {
theme = "catppuccin",
theme = custom_catppuccin,
}
}

View file

@ -32,6 +32,6 @@ return {
},
{
"nvim-tree/nvim-web-devicons",
lazy = true
lazy = true,
},
}

View file

@ -12,6 +12,15 @@ return {
lsp_trouble = true,
which_key = true,
},
-- transparent_background needs some highlight fixups
custom_highlights = function(colors)
return {
-- fixup telescope selection color
TelescopeSelection = { fg = colors.text, bg = colors.surface0 },
-- make bufferline more readable
BufferlineFill = { bg = colors.mantle },
}
end,
},
},
{