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
|
|
|
|
|
|
|
require("lazy").setup {
|
2023-10-06 18:59:27 +03:00
|
|
|
spec = {
|
|
|
|
-- TODO: remove branch v4 on release
|
2023-10-06 19:11:00 +03:00
|
|
|
{ "AstroNvim/AstroNvim", branch = "v4", version = USE_STABLE and "^4" or nil, import = "astronvim.plugins" },
|
2023-10-06 18:59:27 +03:00
|
|
|
{ import = "astronvim.lazy_snapshot", cond = USE_STABLE },
|
2023-07-25 19:00:48 +03:00
|
|
|
-- 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
|
2023-10-06 18:59:27 +03:00
|
|
|
},
|
2023-07-25 19:00:48 +03:00
|
|
|
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",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|