-- set lazy path local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim' ---@diagnostic disable: undefined-field ifnot (vim.uv or vim.loop).fs_stat(lazypath) then local lazyrepo = 'https://github.com/folke/lazy.nvim.git' local out = vim.fn.system { 'git', 'clone', '--filter=blob:none', '--branch=stable', lazyrepo, lazypath } if vim.v.shell_error ~= 0then error('Error cloning lazy.nvim:\n' .. out) end end---@diagnostic disable-next-line: undefined-field vim.opt.rtp:prepend(lazypath)
-- import plugins require('lazy').setup { -- all the plugins' configure files should be put under `lua/plugins` spec = { -- NOTE: 插件被放置在 lua/plugins 目录下 { import = 'plugins' }, }, -- }, --[[@as LazySpec]] { -- Configure any other `lazy.nvim` configuration options here
install = { colorscheme = { 'catppuccin' }, }, ui = { backdrop = 100, width = 0.8, height = 0.8, border = 'rounded', }, performance = { rtp = { -- disable some rtp plugins, add more to your liking disabled_plugins = {}, }, }, config = function() -- apply options and keymaps -- must be put here as hook because plugin loading is async end, ---@diagnostic disable: undefined-doc-name } --[[@as LazyConfig]]