Formatting

This commit is contained in:
2024-01-28 11:37:23 +01:00
parent 3c1a418702
commit 662e59fe13
7 changed files with 32 additions and 33 deletions

View File

@@ -1,24 +1,23 @@
local lazypath = vim.env.LAZY or vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
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
vim.fn.system {
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()
vim.fn.getchar()
vim.cmd.quit()
end
lazy.setup({