lazy.lua 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. require("lazy").setup({
  9. spec = {
  10. -- add LazyVim and import its plugins
  11. { "LazyVim/LazyVim", import = "lazyvim.plugins" },
  12. -- import any extras modules here
  13. -- { import = "lazyvim.plugins.extras.lang.typescript" },
  14. { import = "lazyvim.plugins.extras.lang.json" },
  15. { import = "lazyvim.plugins.extras.lang.clangd" },
  16. -- { import = "lazyvim.plugins.extras.ui.mini-animate" },
  17. -- import/override with your plugins
  18. { import = "plugins" },
  19. },
  20. defaults = {
  21. -- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
  22. -- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
  23. lazy = false,
  24. -- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
  25. -- have outdated releases, which may break your Neovim install.
  26. version = false, -- always use the latest git commit
  27. -- version = "*", -- try installing the latest stable version for plugins that support semver
  28. },
  29. install = { colorscheme = { "tokyonight", "habamax", "catppuccin" } },
  30. checker = { enabled = true }, -- automatically check for plugin updates
  31. performance = {
  32. rtp = {
  33. -- disable some rtp plugins
  34. disabled_plugins = {
  35. "gzip",
  36. -- "Adding test line",
  37. -- "Adding test line",
  38. -- "matchit",
  39. -- "matchparen",
  40. -- "netrwPlugin",
  41. -- "lazygit",
  42. "tarPlugin",
  43. "tohtml",
  44. "tutor",
  45. "zipPlugin",
  46. },
  47. },
  48. },
  49. })