2024-02-13 19:29:05 +03:00
|
|
|
local lazypath = vim.env.LAZY or vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
|
|
|
|
if not (vim.env.LAZY or vim.loop.fs_stat(lazypath)) then
|
|
|
|
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(lazypath)
|
|
|
|
|
|
|
|
local lazy_loaded, lazy = pcall(require, "lazy") -- validate that lazy is available
|
|
|
|
if not lazy_loaded then
|
|
|
|
-- stylua: ignore
|
|
|
|
vim.api.nvim_echo({ { ("Unable to load lazy from: %s\n"):format(lazypath), "ErrorMsg" }, { "Press any key to exit...", "MoreMsg" } }, true, {})
|
|
|
|
vim.fn.getchar()
|
|
|
|
vim.cmd.quit()
|
|
|
|
end
|
|
|
|
|
|
|
|
lazy.setup({
|
2024-02-13 21:42:17 +03:00
|
|
|
{
|
|
|
|
"AstroNvim/AstroNvim",
|
|
|
|
branch = "v4", -- TODO: change `branch="v4"` to `version="^4"` on release
|
|
|
|
import = "astronvim.plugins",
|
|
|
|
opts = { -- AstroNvim options must be set with the `import` key
|
|
|
|
mapleader = " ", -- This ensures the leader key must be configured before Lazy is set up
|
2024-02-13 23:39:40 +03:00
|
|
|
maplocalleader = ",", -- This ensures the localleader key must be configured before Lazy is set up
|
2024-02-13 21:42:17 +03:00
|
|
|
icons_enabled = true, -- Set to false to disable icons (if no Nerd Font is available)
|
|
|
|
pin_plugins = nil, -- Default will pin plugins when tracking `version` of AstroNvim, set to true/false to override
|
|
|
|
},
|
|
|
|
},
|
2024-02-13 22:00:50 +03:00
|
|
|
{ import = "community" },
|
2024-02-13 19:29:05 +03:00
|
|
|
{ import = "plugins" },
|
|
|
|
} --[[@as LazySpec]], {
|
|
|
|
install = { colorscheme = { "astrodark", "habamax" } },
|
|
|
|
performance = {
|
|
|
|
rtp = {
|
|
|
|
-- disable some rtp plugins, add more to your liking
|
|
|
|
disabled_plugins = {
|
|
|
|
"gzip",
|
|
|
|
"netrwPlugin",
|
|
|
|
"tarPlugin",
|
|
|
|
"tohtml",
|
|
|
|
"zipPlugin",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} --[[@as LazyConfig]])
|
|
|
|
|
2024-02-13 21:52:12 +03:00
|
|
|
require "polish"
|