Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions doc/lazy.nvim.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down
5 changes: 5 additions & 0 deletions lua/lazy/manage/task/git.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading