Files
neovim-config/lua/config/lazy.lua
T
rootiest 27e429df43 🧹 chore(lazy): fix formatting
fix formatting in lazy bootstrap
2024-08-17 00:39:10 -04:00

55 lines
1.6 KiB
Lua

-- ╭─────────────────────────────────────────────────────────╮
-- │ Lazy │
-- ╰─────────────────────────────────────────────────────────╯
-- Bootstrap lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.uv.fs_stat(lazypath) then
-- stylua: ignore
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", lazypath
})
end
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
-- ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ PLUGINS ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
require("lazy").setup({
spec = {
{
"LazyVim/LazyVim",
import = "lazyvim.plugins",
},
{ import = "plugins" }, -- General Plugins
},
defaults = {
lazy = false,
version = false,
event = "VeryLazy",
},
checker = { enabled = true },
performance = {
rtp = {
disabled_plugins = {
"gzip",
"netrwPlugin",
"tarPlugin",
"tohtml",
"tutor",
"zipPlugin",
},
},
},
profiling = {
-- Track the time spent loading plugins
loader = true,
require = true,
},
ui = {
border = "rounded",
title = " Plugin Manager ",
},
})