-- ============================================================================= -- lazy.lua — 插件管理器初始化 -- ============================================================================= -- 【来源】从原 init.lua 提取。 -- 【修改】🔧 install.colorscheme 改为 tokyonight(你的主题); -- 🔧 添加 ui.border = "rounded" 统一圆角; -- 🔧 添加 performance.rtp 禁用内置插件提升启动速度。 -- 【修复】🔧 defaults.lazy = true(保留你的原设置),但 UI 核心插件不懒加载。 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" }, }, -- 🔧 修复:保留你的 defaults.lazy = true defaults = { lazy = true, }, -- 🔧 修改:安装时尝试加载你的主题 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", }, }, }, })