Files
dotfiles/nvim/lua/config/lazy.lua
T
2026-07-19 20:39:54 +08:00

57 lines
1.2 KiB
Lua
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- =============================================================================
-- 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",
},
},
},
})