添加透明插件

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

@ -65,10 +65,12 @@ require("lazy").setup({
require("lazy.plugins.pairs"),
-- flutter
require("lazy.plugins.flutter"),
-- 透明
require("lazy.plugins.transprent"),
-- 主题 themes
require("lazy.plugins.themes"),
-- 顶部标签页,文件缓冲区
require("lazy.plugins.bufferline"),
require("lazy.plugins.topbar"),
-- 底部状态栏
require("lazy.plugins.bottombar"),
-- 注释插件

View file

@ -9,18 +9,28 @@ return {
config = function()
require("lualine").setup({
options = {
theme = "catppuccin",
always_divide_middle = false,
component_separators = { left = "", right = "" },
section_separators = { left = "", right = "" },
},
sections = {
lualine_a = { "mode" },
lualine_a = {
{
"mode",
icons_enabled = false,
color = { fg = "grey" },
},
},
lualine_b = { "branch", "diff", "diagnostics" },
lualine_c = { "lsp_status" },
lualine_x = {},
lualine_y = { "encoding", "progress" },
lualine_z = { "location" },
lualine_z = {
{
"location",
color = { fg = "grey" },
},
},
},
})
end,

View file

@ -1,25 +0,0 @@
-- ===
-- === 文件缓冲标签栏
-- ===
local map = require("core.keymap")
-- 在标签之间移动
map:cmd('tn', 'BufferLineCyclePrev')
map:cmd('ti', 'BufferLineCycleNext')
-- 移动标签的位置
map:cmd('tmn', 'BufferLineMovePrev')
map:cmd('tmi', 'BufferLineMoveNext')
-- 关闭标签貌似是neovim自带的完整命令bdelete
map:cmd('tq', 'bd')
return {
'akinsho/bufferline.nvim',
version = "*",-- 安装最新的稳定版
dependencies = 'kyazdani42/nvim-web-devicons',
config = function()
require("bufferline").setup {}
end
}

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,
-- },

View file

@ -1,13 +1,25 @@
-- ===
-- === 文件缓冲标签栏
-- ===
local map = require("core.keymap")
-- 在标签之间移动
map:cmd('tn', 'BufferLineCyclePrev')
map:cmd('ti', 'BufferLineCycleNext')
-- 移动标签的位置
map:cmd('tmn', 'BufferLineMovePrev')
map:cmd('tmi', 'BufferLineMoveNext')
-- 关闭标签貌似是neovim自带的完整命令bdelete
map:cmd('tq', 'bd')
return {
"romgrk/barbar.nvim",
dependencies = {
"lewis6991/gitsigns.nvim", -- OPTIONAL: for git status
"nvim-tree/nvim-web-devicons", -- OPTIONAL: for file icons
},
init = function()
vim.g.barbar_auto_setup = true
end,
opts = {
},
version = "^1.0.0", -- optional: only update when a new 1.x version is released
'akinsho/bufferline.nvim',
version = "*",-- 安装最新的稳定版
dependencies = 'kyazdani42/nvim-web-devicons',
config = function()
require("bufferline").setup {}
end
}

View file

@ -0,0 +1,15 @@
return {
"xiyaowong/transparent.nvim",
config = function()
require("transparent").clear_prefix("BufferLine")
require("transparent").clear_prefix("lualine")
-- require("transparent").clear_prefix("NeoTree")
-- require("transparent").clear_prefix("Lsp")
-- require("transparent").clear_prefix("Noice")
-- require("transparent").clear_prefix("Saga")
-- require("transparent").clear_prefix("Float")
-- require("transparent").clear("HoverBorder")
-- require("transparent").clear("Pmenu")
-- require("transparent").clear("NotifyBackground")
end,
}