summaryrefslogtreecommitdiff
path: root/lua/config/lazy.lua
diff options
context:
space:
mode:
authorFolke Lemaitre <folke.lemaitre@gmail.com>2023-01-07 10:52:40 +0100
committerFolke Lemaitre <folke.lemaitre@gmail.com>2023-01-07 10:52:40 +0100
commit32656ad76d86b409252d8feb1510cc2910fa9f6b (patch)
treefbdf5b81267656db7449b8f6f7180f60edcfe86d /lua/config/lazy.lua
parentd8769e1cf8cd4047f78f26923a92e83fa94de9f6 (diff)
docs: added comments to config files
Diffstat (limited to 'lua/config/lazy.lua')
-rw-r--r--lua/config/lazy.lua21
1 files changed, 11 insertions, 10 deletions
diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua
index 2e00452..9208df7 100644
--- a/lua/config/lazy.lua
+++ b/lua/config/lazy.lua
@@ -1,26 +1,27 @@
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
- vim.fn.system({
- "git",
- "clone",
- "--filter=blob:none",
- "https://github.com/folke/lazy.nvim.git",
- "--branch=stable",
- lazypath,
- })
+ -- bootstrap lazy.nvim
+ -- 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)
require("lazy").setup({
spec = {
+ -- import LazyVim plugins
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
+ -- import/override with your plugins
{ import = "plugins" },
},
- defaults = { lazy = true },
+ defaults = {
+ lazy = true, -- every plugin is lazy-loaded by default
+ version = "*", -- try installing the latest stable version for plugins that support semver
+ },
install = { colorscheme = { "tokyonight", "habamax" } },
- checker = { enabled = true },
+ checker = { enabled = true }, -- automatically check for plugin updates
performance = {
rtp = {
+ -- disable some rtp plugins
disabled_plugins = {
"gzip",
"matchit",