]> git.rmz.io Git - dotfiles.git/blob - nvim/lua/config/lazy.lua
68de635ef3d263c773976b442beae97e17577e4c
[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 -- add LazyVim and import its plugins
12 { "LazyVim/LazyVim", import = "lazyvim.plugins" },
13 -- import any extras modules here
14 -- { import = "lazyvim.plugins.extras.lang.typescript" },
15 -- { import = "lazyvim.plugins.extras.lang.json" },
16 -- { import = "lazyvim.plugins.extras.ui.mini-animate" },
17 -- import/override with your plugins
18 { import = "plugins" },
19 { import = "plugins.lang" },
20 },
21 defaults = {
22 -- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
23 -- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
24 lazy = false,
25 -- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
26 -- have outdated releases, which may break your Neovim install.
27 version = false, -- always use the latest git commit
28 -- version = "*", -- try installing the latest stable version for plugins that support semver
29 },
30 install = { colorscheme = { "onenord", "habamax" } },
31 checker = {
32 -- automatically check for plugin updates
33 enabled = true,
34 notify = false,
35 },
36 performance = {
37 rtp = {
38 -- HACK: do not reset rtp to allow interop with vim-plug
39 reset = false,
40 -- disable some rtp plugins
41 disabled_plugins = {
42 "gzip",
43 -- "matchit",
44 -- "matchparen",
45 "netrwPlugin",
46 "tarPlugin",
47 "tohtml",
48 "tutor",
49 "zipPlugin",
50 },
51 },
52 },
53 })