feat: AstroNvim configures it's own plugin pinning

pull/4/head
Micah Halter 2023-12-18 08:11:14 -05:00
parent 151a16113d
commit 9d7c0e0b25
No known key found for this signature in database
GPG Key ID: 4224A6EA9A8CAAA8
1 changed files with 2 additions and 8 deletions

View File

@ -6,16 +6,10 @@ if not vim.loop.fs_stat(lazypath) then
end end
vim.opt.rtp:prepend(vim.env.LAZY or lazypath) 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 { require("lazy").setup {
spec = { spec = {
-- TODO: remove branch v4 on release -- TODO: change `branch="v4"` to `version="^4"` on release
{ "AstroNvim/AstroNvim", branch = "v4", version = USE_STABLE and "^4" or nil, import = "astronvim.plugins" }, { "AstroNvim/AstroNvim", branch = "v4", import = "astronvim.plugins" },
-- pin plugins to known working versions
{ import = "astronvim.lazy_snapshot", cond = USE_STABLE },
-- AstroCommunity: import any community modules here -- AstroCommunity: import any community modules here
-- TODO: Remove branch v4 on release -- TODO: Remove branch v4 on release
-- { "AstroNvim/astrocommunity", branch = "v4" }, -- { "AstroNvim/astrocommunity", branch = "v4" },