summaryrefslogtreecommitdiff
path: root/lua/config
diff options
context:
space:
mode:
authorFolke Lemaitre <folke.lemaitre@gmail.com>2023-01-07 10:20:36 +0100
committerFolke Lemaitre <folke.lemaitre@gmail.com>2023-01-07 10:20:36 +0100
commitd8769e1cf8cd4047f78f26923a92e83fa94de9f6 (patch)
tree809080ff355b1b20a1f100f51177d4f9557e8d1b /lua/config
feat: initial commit
Diffstat (limited to 'lua/config')
-rw-r--r--lua/config/lazy.lua36
1 files changed, 36 insertions, 0 deletions
diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua
new file mode 100644
index 0000000..2e00452
--- /dev/null
+++ b/lua/config/lazy.lua
@@ -0,0 +1,36 @@
+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,
+ })
+end
+vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
+
+require("lazy").setup({
+ spec = {
+ { "LazyVim/LazyVim", import = "lazyvim.plugins" },
+ { import = "plugins" },
+ },
+ defaults = { lazy = true },
+ install = { colorscheme = { "tokyonight", "habamax" } },
+ checker = { enabled = true },
+ performance = {
+ rtp = {
+ disabled_plugins = {
+ "gzip",
+ "matchit",
+ "matchparen",
+ "netrwPlugin",
+ "tarPlugin",
+ "tohtml",
+ "tutor",
+ "zipPlugin",
+ },
+ },
+ },
+})