Member-only story
LazyNvim Download the plugin using SSH
Feb 10, 2023
If you need to use SSH to download the plugin from GitHub, you need to modify the `~/.config/nvim/lua/config/lazy.lua` file and add the following code to it.
git = {
-- defaults for the `Lazy log` command
-- log = { "-10" }, -- show the last 10 commits
log = { "--since=3 days ago" }, -- show commits from the last 3 days
timeout = 120, -- kill processes that take more than 2 minutes
url_format = "git@github.com:%s",
-- 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,
},
At this point go to Nvim to view the download address, the details are shown in the figure