]> git.rmz.io Git - dotfiles.git/blob - nvim/lua/config/lazy.lua
lazyvim: disable LazyVim
[dotfiles.git] / nvim / lua / config / lazy.lua
1 local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
2 if not vim.loop.fs_stat(lazypath) then
3 -- bootstrap lazy.nvim
4 -- stylua: ignore
5 vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
6 end
7 vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
8
9 require("lazy").setup({
10 spec = {
11 { import = "plugins" },
12 { import = "plugins.lang" },
13 },
14 defaults = {
15 -- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
16 -- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
17 lazy = false,
18 -- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
19 -- have outdated releases, which may break your Neovim install.
20 version = false, -- always use the latest git commit
21 -- version = "*", -- try installing the latest stable version for plugins that support semver
22 },
23 install = { colorscheme = { "onenord", "habamax" } },
24 checker = {
25 -- automatically check for plugin updates
26 enabled = true,
27 notify = false,
28 },
29 performance = {
30 rtp = {
31 -- HACK: do not reset rtp to allow interop with vim-plug
32 reset = false,
33 -- disable some rtp plugins
34 disabled_plugins = {
35 "gzip",
36 -- "matchit",
37 -- "matchparen",
38 "netrwPlugin",
39 "tarPlugin",
40 "tohtml",
41 "tutor",
42 "zipPlugin",
43 },
44 },
45 },
46 })