-- ============================================================================= -- lazy.lua — 插件管理器初始化 -- ============================================================================= 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, }, -- 安装时尝试加载的主题 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", }, }, }, })