2022-04-02 04:02:22 +00:00
|
|
|
-- vim: shiftwidth=2
|
2021-11-16 11:55:36 +00:00
|
|
|
|
2023-10-27 11:29:23 +00:00
|
|
|
-- Bootstrapping for the package manager
|
|
|
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
|
|
|
if not vim.loop.fs_stat(lazypath) then
|
2025-01-28 09:23:00 +00:00
|
|
|
local out = vim.fn.system({
|
2023-10-27 11:29:23 +00:00
|
|
|
"git",
|
|
|
|
"clone",
|
|
|
|
"--filter=blob:none",
|
|
|
|
"https://github.com/folke/lazy.nvim.git",
|
|
|
|
"--branch=stable", -- latest stable release
|
|
|
|
lazypath,
|
|
|
|
})
|
2025-01-28 09:23:00 +00:00
|
|
|
if vim.v.shell_error ~= 0 then
|
|
|
|
vim.api.nvim_echo({
|
|
|
|
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
|
|
|
{ out, "WarningMsg" },
|
|
|
|
{ "\nPress any key to exit." },
|
|
|
|
}, true, {})
|
|
|
|
vim.fn.getchar()
|
|
|
|
os.exit(1)
|
|
|
|
end
|
2023-10-27 11:29:23 +00:00
|
|
|
end
|
|
|
|
vim.opt.rtp:prepend(lazypath)
|
|
|
|
|
2023-10-27 11:33:17 +00:00
|
|
|
require("settings").setup()
|
|
|
|
require("lazy").setup("plugins")
|