添加透明插件

This commit is contained in:
captain 2025-10-02 21:38:39 +08:00
parent ca4d0cf24a
commit 289c4daaa4
6 changed files with 94 additions and 73 deletions

View file

@ -2,37 +2,44 @@
-- === 主题
-- ===
return {
{
"catppuccin/nvim",
name = "catppuccin",
priority = 1000,
opts = {
transparent_background = false,
custom_highlights = function(colors)
return {
LineNr = { fg = colors.surface2 },
Visual = { bg = colors.overlay0 },
Search = { bg = colors.surface2 },
IncSearch = { bg = colors.lavender },
CurSearch = { bg = colors.lavender },
MatchParen = { bg = colors.lavender, fg = colors.base, bold = true },
}
end,
integrations = {
barbar = true,
blink_cmp = true,
gitsigns = true,
mason = true,
noice = true,
notify = true,
nvimtree = true,
rainbow_delimiters = true,
},
},
config = function(_, opts)
require("catppuccin").setup(opts)
vim.cmd.colorscheme("catppuccin")
end,
},
"folke/tokyonight.nvim",
lazy = false,
priority = 1000,
opts = {},
config = function()
vim.cmd.colorscheme("tokyonight")
end,
}
-- return {
-- "catppuccin/nvim",
-- name = "catppuccin",
-- priority = 1000,
-- opts = {
-- transparent_background = false,
-- custom_highlights = function(colors)
-- return {
-- LineNr = { fg = colors.surface2 },
-- Visual = { bg = colors.overlay0 },
-- Search = { bg = colors.surface2 },
-- IncSearch = { bg = colors.lavender },
-- CurSearch = { bg = colors.lavender },
-- MatchParen = { bg = colors.lavender, fg = colors.base, bold = true },
-- }
-- end,
-- integrations = {
-- barbar = true,
-- blink_cmp = true,
-- gitsigns = true,
-- mason = true,
-- noice = true,
-- notify = true,
-- nvimtree = true,
-- rainbow_delimiters = true,
-- },
-- },
-- config = function(_, opts)
-- require("catppuccin").setup(opts)
-- vim.cmd.colorscheme("catppuccin")
-- end,
-- },