2023-07-25 19:00:48 +03:00
local lazypath = vim.fn . stdpath " data " .. " /lazy/lazy.nvim "
if not vim.loop . fs_stat ( lazypath ) then
2023-07-27 19:42:05 +03:00
vim.g . astronvim_first_install = true -- lets AstroNvim know that this is an initial installation
2023-07-25 19:00:48 +03:00
-- stylua: ignore
2023-07-27 13:57:52 +03:00
vim.fn . system ( { " git " , " clone " , " --filter=blob:none " , " https://github.com/folke/lazy.nvim.git " , " --branch=stable " , lazypath } )
2023-07-25 19:00:48 +03:00
end
vim.opt . rtp : prepend ( vim.env . LAZY or lazypath )
-- TODO: set to true on release
2023-07-27 19:42:05 +03:00
-- Whether or not to use stable releases of AstroNvim
local USE_STABLE = false
2023-07-25 19:00:48 +03:00
local spec = {
-- TODO: remove branch v4 on release
{ " AstroNvim/AstroNvim " , branch = " v4 " , version = USE_STABLE and " * " or nil , import = " astronvim.plugins " } ,
2023-07-27 19:42:05 +03:00
-- { "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
2023-07-25 19:00:48 +03:00
}
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
2023-07-26 14:44:02 +03:00
-- TODO: Remove branch v4 on release
-- { "AstroNvim/astrocommunity", branch = "v4" },
2023-07-25 19:00:48 +03:00
-- { 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 ,
2023-07-25 19:00:48 +03:00
} ,
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 " ,
} ,
} ,
} ,
}