mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 11:24: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
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
---@field module? false
|
||||
|
||||
---@class LazyPluginRef
|
||||
---@field shallow? boolean clones the plugin with --depth=1
|
||||
---@field branch? string
|
||||
---@field tag? string
|
||||
---@field commit? string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue