add insecure option to the plugin spec

This commit is contained in:
ngn 2025-01-04 12:08:15 +03:00
parent 7e6c863bc7
commit b6d2943703
2 changed files with 7 additions and 0 deletions

View file

@ -158,6 +158,11 @@ M.clone = {
vim.list_extend(args, { "-b", self.plugin.branch })
end
if self.plugin.insecure then
args[#args + 1] = "-c"
args[#args + 1] = "http.sslVerify=false"
end
table.insert(args, self.plugin.dir)
if vim.fn.isdirectory(self.plugin.dir) == 1 then