Clone only the last commit when installing lazy.nvim

Update `README.md` to add `--depth=1` when cloning `lazy.nvim` repo.
This commit is contained in:
Rabin Adhikari 2024-01-16 12:03:07 +05:45 committed by GitHub
commit 43d3a1f002
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,6 +42,7 @@ if not vim.loop.fs_stat(lazypath) then
vim.fn.system({ vim.fn.system({
"git", "git",
"clone", "clone",
"--depth=1",
"--filter=blob:none", "--filter=blob:none",
"https://github.com/folke/lazy.nvim.git", "https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release "--branch=stable", -- latest stable release