mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-29 03:44:14 +00:00
Adding shallow option to git clone step
This commit is contained in:
parent
3ad55ae678
commit
a0cbebc434
2 changed files with 5 additions and 0 deletions
|
@ -67,6 +67,10 @@ M.clone = {
|
|||
self.plugin.url,
|
||||
}
|
||||
|
||||
if self.plugin.shallow ~= false then
|
||||
args[#args+1] = "--depth=1"
|
||||
end
|
||||
|
||||
if Config.options.git.filter then
|
||||
args[#args + 1] = "--filter=blob:none"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue