Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

提高国人插件下载速度(Feature) #49

Closed
Leiyi548 opened this issue Nov 29, 2021 · 6 comments
Closed

提高国人插件下载速度(Feature) #49

Leiyi548 opened this issue Nov 29, 2021 · 6 comments
Labels
enhancement New feature or request

Comments

@Leiyi548
Copy link

packer.init({
    compile_path = packer_compiled,
    disable_commands = true,
    display = {
        open_fn = function()
            return require("packer.util").float({border = "single"})
        end
    },
   git = {
   clone_timeout = 120,
   default_url_format = 'https://hub.fastgit.org/%s'
  }
})

把core/pack.lua 里面这个改下下载插件飞起来

@ayamir
Copy link
Owner

ayamir commented Nov 29, 2021

这个不能直接加,因为还有国外用户,我再考虑一下怎么实现

@ayamir ayamir added the enhancement New feature or request label Nov 29, 2021
@ayasa520
Copy link

ayasa520 commented Dec 6, 2021

都改成 ssh 方式下载如何
wbthomason/packer.nvim#326 (comment)

@ayamir
Copy link
Owner

ayamir commented Dec 6, 2021

用ssh可以突破gfw的限制吗,我倒是没有尝试过

@ayasa520
Copy link

ayasa520 commented Dec 6, 2021

用ssh可以突破gfw的限制吗,我倒是没有尝试过

我这边是可以的,https 基本没反应,ssh 就快得多

@kongjun18
Copy link

SSH 似乎可以解决这个问题,参考我的评论,链接 https://github.com/wbthomason/packer.nvim/issues/326#issuecomment-1037168353。

@ayamir
Copy link
Owner

ayamir commented Feb 13, 2022

SSH 似乎可以解决这个问题,参考我的评论,链接 https://github.com/wbthomason/packer.nvim/issues/326#issuecomment-1037168353。

我试了一下确实速度快了很多,这就commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants