mirror of https://github.com/folke/lazy.nvim.git
feat(config): added option to disable git filter. NOT recommended. Fixes #442
This commit is contained in:
parent
c32a6185ac
commit
26a67e3c48
|
@ -21,6 +21,10 @@ M.defaults = {
|
||||||
log = { "--since=3 days ago" }, -- show commits from the last 3 days
|
log = { "--since=3 days ago" }, -- show commits from the last 3 days
|
||||||
timeout = 120, -- kill processes that take more than 2 minutes
|
timeout = 120, -- kill processes that take more than 2 minutes
|
||||||
url_format = "https://github.com/%s.git",
|
url_format = "https://github.com/%s.git",
|
||||||
|
-- lazy.nvim requires git >=2.19.0. If you really want to use lazy with an older version,
|
||||||
|
-- then set the below to false. This is should work, but is NOT supported and will
|
||||||
|
-- increase downloads a lot.
|
||||||
|
filter = true,
|
||||||
},
|
},
|
||||||
dev = {
|
dev = {
|
||||||
-- directory where you store your local plugin projects
|
-- directory where you store your local plugin projects
|
||||||
|
|
|
@ -64,10 +64,16 @@ M.clone = {
|
||||||
local args = {
|
local args = {
|
||||||
"clone",
|
"clone",
|
||||||
self.plugin.url,
|
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",
|
"--recurse-submodules",
|
||||||
"--progress",
|
"--progress",
|
||||||
}
|
})
|
||||||
|
|
||||||
if self.plugin.branch then
|
if self.plugin.branch then
|
||||||
vim.list_extend(args, { "-b", self.plugin.branch })
|
vim.list_extend(args, { "-b", self.plugin.branch })
|
||||||
|
|
Loading…
Reference in New Issue