···11+local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
22+if not (vim.uv or vim.loop).fs_stat(lazypath) then
33+ local lazyrepo = "https://github.com/folke/lazy.nvim.git"
44+ local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
55+ if vim.v.shell_error ~= 0 then
66+ vim.api.nvim_echo({
77+ { "Failed to clone lazy.nvim:\n", "ErrorMsg" },
88+ { out, "WarningMsg" },
99+ { "\nPress any key to exit..." },
1010+ }, true, {})
1111+ vim.fn.getchar()
1212+ os.exit(1)
1313+ end
1414+end
1515+vim.opt.rtp:prepend(lazypath)
1616+1717+require("lazy").setup({
1818+ spec = {
1919+ -- add LazyVim and import its plugins
2020+ { "LazyVim/LazyVim", import = "lazyvim.plugins" },
2121+ -- import/override with your plugins
2222+ { import = "plugins" },
2323+ },
2424+ defaults = {
2525+ -- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
2626+ -- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
2727+ lazy = false,
2828+ -- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
2929+ -- have outdated releases, which may break your Neovim install.
3030+ version = false, -- always use the latest git commit
3131+ -- version = "*", -- try installing the latest stable version for plugins that support semver
3232+ },
3333+ install = { colorscheme = { "tokyonight", "habamax" } },
3434+ checker = {
3535+ enabled = true, -- check for plugin updates periodically
3636+ notify = false, -- notify on update
3737+ }, -- automatically check for plugin updates
3838+ performance = {
3939+ rtp = {
4040+ -- disable some rtp plugins
4141+ disabled_plugins = {
4242+ "gzip",
4343+ "tarPlugin",
4444+ "tohtml",
4545+ "tutor",
4646+ "zipPlugin",
4747+ },
4848+ },
4949+ },
5050+})
5151+5252+vim.cmd.colorscheme("catppuccin")