1local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
2if not (vim.uv or vim.loop).fs_stat(lazypath) then
3 local lazyrepo = "https://github.com/folke/lazy.nvim.git"
4 local out = vim.fn.system({
5 "git",
6 "clone",
7 "--filter=blob:none",
8 "--branch=stable",
9 lazyrepo,
10 lazypath
11 })
12 if vim.v.shell_error ~= 0 then
13 vim.api.nvim_echo({
14 { "Failed to clone lazy.nvim:\n", "ErrorMsg" },
15 { out, "WarningMsg" },
16 { "\nPress any key to exit..." },
17 }, true, {})
18 vim.fn.getchar()
19 os.exit(1)
20 end
21end
22vim.opt.rtp:prepend(lazypath)
23
24require "ptero.options"
25
26require("lazy").setup({
27 spec = {
28 { import = "plugins" },
29 },
30
31 install = { colorscheme = { "catppuccin-mocha" } },
32
33 checker = { enabled = false },
34 ui = { border = "rounded" }
35})