| 1 | local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim' |
| 2 | if not (vim.uv or vim.loop).fs_stat(lazypath) then |
| 3 | local lazyrepo = 'https://github.com/folke/lazy.nvim.git' |
| 4 | local out = vim.fn.system { 'git', 'clone', '--filter=blob:none', '--branch=stable', lazyrepo, lazypath } |
| 5 | if vim.v.shell_error ~= 0 then |
| 6 | error('Error cloning lazy.nvim:\n' .. out) |
| 7 | end |
| 8 | end ---@diagnostic disable-next-line: undefined-field |
| 9 | vim.opt.rtp:prepend(lazypath) |
| 10 | |
| 11 | require("lazy").setup({ import = "plugins" }, { |
| 12 | install = { |
| 13 | missing = true, |
| 14 | colorscheme = { "habamax" } |
| 15 | }, |
| 16 | checker = { |
| 17 | enabled = true, |
| 18 | notify = false, |
| 19 | }, |
| 20 | change_detection = { |
| 21 | enabled = true, |
| 22 | notify = false, |
| 23 | }, |
| 24 | ui = { |
| 25 | -- border = "rounded" |
| 26 | }, |
| 27 | performance = { |
| 28 | rtp = { |
| 29 | disabled_plugins = { |
| 30 | "gzip", |
| 31 | "tarPlugin", |
| 32 | "tohtml", |
| 33 | "tutor", |
| 34 | "zipPlugin", |
| 35 | }, |
| 36 | }, |
| 37 | }, |
| 38 | }) |