refactor: clean up user example files to be easier to follow
This commit is contained in:
@@ -1,17 +1,19 @@
|
||||
local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
vim.g.astronvim_first_install = true
|
||||
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
|
||||
local USE_STABLE = false -- use stable releases of AstroNvim
|
||||
-- Whether or not to use stable releases of AstroNvim
|
||||
local USE_STABLE = false
|
||||
|
||||
local 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
|
||||
}
|
||||
if USE_STABLE then table.insert(spec, { import = "astronvim.lazy_snapshot" }) end -- pin plugins to known stable versions/commits
|
||||
|
||||
|
||||
Reference in New Issue
Block a user