at main 592 B view raw
1-- [[ Install `lazy.nvim` plugin manager ]] 2-- See `:help lazy.nvim.txt` or https://github.com/folke/lazy.nvim for more info 3local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim' 4if not (vim.uv or vim.loop).fs_stat(lazypath) then 5 local lazyrepo = 'https://github.com/folke/lazy.nvim.git' 6 local out = vim.fn.system { 'git', 'clone', '--filter=blob:none', '--branch=stable', lazyrepo, lazypath } 7 if vim.v.shell_error ~= 0 then 8 error('Error cloning lazy.nvim:\n' .. out) 9 end 10end 11 12---@type vim.Option 13local rtp = vim.opt.rtp 14rtp:prepend(lazypath) 15 16-- vim: ts=2 sts=2 sw=2 et