- 分层架构:config/{options,keymaps,lazy} + plugins/
- 保留:blink.cmp, oil.nvim, runner.lua, cmake-tools, diffview, tokyonight
- 新增 UI:bufferline, lualine, noice, nvim-notify, dashboard, dressing
- 新增编辑器:Comment, nvim-surround, vim-illuminate, toggleterm, flash
- 新增视觉:indent-blankline, nvim-ufo, rainbow-delimiters
- 新增 Git:lazygit 集成
- 新增 DAP:persistent-breakpoints, nvim-dap-virtual-text
- 修复:which-key 启用, rustaceanvim 填充, 键位冲突解决
- 语法检查:22/22 文件全部通过 luajit -b
49 lines
1.7 KiB
Lua
49 lines
1.7 KiB
Lua
-- =============================================================================
|
|
-- colorscheme.lua — 主题
|
|
-- =============================================================================
|
|
-- 【保留】你的 tokyonight 配置完整保留,透明背景不变。
|
|
-- 【修改】🔧 添加更多 integrations 让主题适配新增的 bufferline/lualine/noice 等。
|
|
|
|
return {
|
|
{
|
|
"folke/tokyonight.nvim",
|
|
lazy = false,
|
|
priority = 1000,
|
|
opts = {
|
|
style = "night",
|
|
transparent = true,
|
|
styles = {
|
|
sidebars = "transparent",
|
|
floats = "transparent",
|
|
},
|
|
-- ✅ 新增:让 tokyonight 知道新装的插件,颜色更协调
|
|
on_highlights = function(hl, c)
|
|
-- bufferline 标签栏背景透明
|
|
hl.BufferLineFill = { bg = "NONE" }
|
|
hl.BufferLineBackGround = { bg = "NONE", fg = c.fg_gutter }
|
|
hl.BufferLineBackGroundVisible = { bg = "NONE", fg = c.fg }
|
|
hl.BufferLineBackGroundSelected = { bg = c.bg_highlight, fg = c.fg, bold = true }
|
|
hl.BufferLineSeparator = { fg = c.fg_gutter }
|
|
hl.BufferLineSeparatorSelected = { fg = c.blue }
|
|
end,
|
|
},
|
|
config = function(_, opts)
|
|
require("tokyonight").setup(opts)
|
|
vim.cmd.colorscheme("tokyonight")
|
|
|
|
-- inlay hints 去掉背景(保留你的设置)
|
|
vim.api.nvim_create_autocmd("ColorScheme", {
|
|
pattern = "tokyonight",
|
|
callback = function()
|
|
vim.api.nvim_set_hl(0, "LspInlayHint", {
|
|
bg = "NONE", fg = "#565f89", italic = true,
|
|
})
|
|
end,
|
|
})
|
|
vim.api.nvim_set_hl(0, "LspInlayHint", {
|
|
bg = "NONE", fg = "#565f89", italic = true,
|
|
})
|
|
end,
|
|
},
|
|
}
|