Uzair Aftab 372bba036f
fix: Point to v4 compatible branch (#18)
* feat: Point to v4-refactor branch instead of stable astrocommunity

* chore: Use v4 branch instead of v4-refactor

Co-authored-by: Micah Halter <micah@mehalter.com>

* chore: Comment out astrocommunity as default

Co-authored-by: Micah Halter <micah@mehalter.com>

* chore: Fix comment

---------

Co-authored-by: Micah Halter <micah@mehalter.com>
2023-07-26 07:44:02 -04:00

46 lines
1.6 KiB
Lua

local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
-- 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
local USE_STABLE = false -- use stable releases of AstroNvim
local spec = {
-- TODO: remove branch v4 on release
{ "AstroNvim/AstroNvim", branch = "v4", version = USE_STABLE and "*" or nil, import = "astronvim.plugins" },
}
if USE_STABLE then table.insert(spec, { import = "astronvim.lazy_snapshot" }) end -- pin plugins to known stable versions/commits
require("lazy").setup {
spec = vim.list_extend(spec, {
-- 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.
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",
},
},
},
}