AstroNvim_template/lua/config/lazy.lua

45 lines
1.8 KiB
Lua
Raw Normal View History

local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.g.astronvim_first_install = true -- lets AstroNvim know that this is an initial installation
-- stylua: ignore
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
end
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
-- TODO: set to true on release
-- Whether or not to use stable releases of AstroNvim
local USE_STABLE = false
require("lazy").setup {
spec = {
-- TODO: remove branch v4 on release
{ "AstroNvim/AstroNvim", branch = "v4", version = USE_STABLE and "*" or nil, import = "astronvim.plugins" },
-- { "AstroNvim/AstroNvim", version = "3.x", import = "astronvim.plugins" }, -- use this line to only get updates for v3 and avoid the breaking changes if v4 is released
{ import = "astronvim.lazy_snapshot", cond = USE_STABLE },
-- AstroCommunity import any community modules here
-- TODO: Remove branch v4 on release
-- { "AstroNvim/astrocommunity", branch = "v4" },
-- { import = "astrocommunity.pack.lua" },
{ import = "plugins" }, -- import/override with your plugins
},
defaults = {
-- By default, only AstroNvim plugins will be lazy-loaded. Your custom plugins will load during startup.
-- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
2023-07-25 22:49:31 +03:00
lazy = false,
},
install = { colorscheme = { "astrodark", "habamax" } },
checker = { enabled = false }, -- automatically check for plugin updates
performance = {
rtp = {
-- disable some rtp plugins, add more to your liking
disabled_plugins = {
"gzip",
"netrwPlugin",
"tarPlugin",
"tohtml",
"zipPlugin",
},
},
},
}