Fixup v4 template
This commit is contained in:
32
init.lua
32
init.lua
@@ -1,4 +1,28 @@
|
||||
-- bootstrap lazy.nvim, AstroNvim, and user plugins
|
||||
require("config.lazy")
|
||||
-- run polish file at the very end
|
||||
pcall(require, "config.polish")
|
||||
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
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable",
|
||||
lazypath,
|
||||
})
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
if not pcall(require, "lazy") then
|
||||
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
|
||||
|
||||
require("lazy_setup")
|
||||
|
||||
Reference in New Issue
Block a user