mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 04:46:45 +00:00
feat(config): added option to disable git filter. NOT recommended. Fixes #442
This commit is contained in:
parent
c32a6185ac
commit
26a67e3c48
2 changed files with 12 additions and 2 deletions
|
@ -64,10 +64,16 @@ M.clone = {
|
|||
local args = {
|
||||
"clone",
|
||||
self.plugin.url,
|
||||
"--filter=blob:none",
|
||||
}
|
||||
|
||||
if Config.options.git.filter then
|
||||
args[#args + 1] = "--filter=blob:none"
|
||||
end
|
||||
|
||||
vim.list_extend(args, {
|
||||
"--recurse-submodules",
|
||||
"--progress",
|
||||
}
|
||||
})
|
||||
|
||||
if self.plugin.branch then
|
||||
vim.list_extend(args, { "-b", self.plugin.branch })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue