- 分层架构: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
56 lines
1.4 KiB
Lua
56 lines
1.4 KiB
Lua
-- =============================================================================
|
|
-- lazy.lua — 插件管理器初始化
|
|
-- =============================================================================
|
|
-- 【来源】从原 init.lua 提取。
|
|
-- 【修改】🔧 install.colorscheme 改为 tokyonight(你的主题);
|
|
-- 🔧 添加 ui.border = "rounded" 统一圆角;
|
|
-- 🔧 添加 performance.rtp 禁用内置插件提升启动速度。
|
|
|
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
|
if not vim.uv.fs_stat(lazypath) then
|
|
vim.fn.system({
|
|
"git", "clone", "--filter=blob:none",
|
|
"https://github.com/folke/lazy.nvim.git",
|
|
"--branch=stable", lazypath,
|
|
})
|
|
end
|
|
vim.opt.rtp:prepend(lazypath)
|
|
|
|
require("lazy").setup({
|
|
spec = {
|
|
{ import = "plugins" },
|
|
},
|
|
|
|
-- 🔧 修改:安装时尝试加载你的主题
|
|
install = {
|
|
colorscheme = { "tokyonight", "habamax" },
|
|
},
|
|
|
|
-- 🔧 修改:关闭自动检查更新(你的原设置),但保留手动 :Lazy check
|
|
checker = {
|
|
enabled = false,
|
|
notify = false,
|
|
},
|
|
|
|
-- 🔧 修改:统一 UI 圆角边框
|
|
ui = {
|
|
border = "rounded",
|
|
},
|
|
|
|
-- ✅ 新增:禁用内置插件提升启动速度
|
|
performance = {
|
|
rtp = {
|
|
disabled_plugins = {
|
|
"gzip",
|
|
"matchit",
|
|
"matchparen",
|
|
"netrwPlugin",
|
|
"tarPlugin",
|
|
"tohtml",
|
|
"tutor",
|
|
"zipPlugin",
|
|
},
|
|
},
|
|
},
|
|
})
|