diff --git a/doc/lazy.nvim.txt b/doc/lazy.nvim.txt index 68bbee41..fbac0a62 100644 --- a/doc/lazy.nvim.txt +++ b/doc/lazy.nvim.txt @@ -261,6 +261,8 @@ SPEC SOURCE *lazy.nvim-🔌-plugin-spec-spec-source* dev boolean? When true, a local plugin directory will be used instead. See config.dev + + insecure boolean? When true, SSL certificate verification will be disabled. ----------------------------------------------------------------------------------- A valid spec should define one of `[1]`, `dir` or `url`. diff --git a/lua/lazy/manage/task/git.lua b/lua/lazy/manage/task/git.lua index ef848f9c..b2096754 100644 --- a/lua/lazy/manage/task/git.lua +++ b/lua/lazy/manage/task/git.lua @@ -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