Skip to content

Commit 1426179

Browse files
committed
bug fixed: unable to use sync, update, clean options in lazy.nvim...
In this bootstrap code `--depth=1` is the main reason to appear this error.
1 parent 73580d5 commit 1426179

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

lazy-lock.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,9 @@
55
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
66
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
77
"everforest-nvim": { "branch": "main", "commit": "5e0e32a569fb464911342f0d421721cc1c94cf25" },
8-
"friendly-snippets": { "branch": "main", "commit": "d5f74ce4dfdd82848f3f4eac65fe6e29ac5df4c2" },
8+
"friendly-snippets": { "branch": "main", "commit": "d1446afecd54d95b1214c6f5a032ad815fbc74d1" },
9+
"lazy.nvim": { "branch": "main", "commit": "bef521ac89c8d423f9d092e37b58e8af0c099309" },
10+
"lualine.nvim": { "branch": "master", "commit": "0a5a66803c7407767b799067986b4dc3036e1983" },
11+
"nvim-autopairs": { "branch": "master", "commit": "14e97371b2aab6ee70054c1070a123dfaa3e217e" },
12+
"nvim-cmp": { "branch": "main", "commit": "cd2cf0c124d3de577fb5449746568ee8e601afc8" }
13+
}

lua/user/plugins.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
-- check and install lazy if unavailable.
22
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
33
if not (vim.uv or vim.loop).fs_stat(lazypath) then
4-
vim.fn.system({'git', 'clone', '--depth=1', '--filter=blob:none', 'https://github.com/folke/lazy.nvim.git', '--branch=stable', lazypath})
4+
vim.fn.system({'git', 'clone', '--filter=blob:none', 'https://github.com/folke/lazy.nvim.git', '--branch=stable', lazypath})
55
end
66
vim.opt.rtp:prepend(lazypath)
77

0 commit comments

Comments
 (0)