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

The second time i modify git.default_url_format is not work #1218

Open
YHaoNan opened this issue Mar 3, 2023 · 0 comments
Open

The second time i modify git.default_url_format is not work #1218

YHaoNan opened this issue Mar 3, 2023 · 0 comments

Comments

@YHaoNan
Copy link

YHaoNan commented Mar 3, 2023

  • nvim --version
NVIM v0.8.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by runner@fv-az178-366
  • git --version
git version 2.34.1

-OS: Ubuntu 22.04 WSL2

I set the default_url_format to https://hub.fastgit.xyz/%s before, but this site has been closed. This is my new config:

return require('packer').startup({
  function(use)
    -- packer itself
    use 'wbthomason/packer.nvim'

    -- ignore some config

  end,
  config = {
    max_jobs = 16,
    git = {
      default_url_format = 'https://github.com/%s',
    },
    display = {
      open_fn = require('packer.util').float,
    }
  },
})

I execute the PackerCompile after modify. And the actual url of plugins in plugin/packer_compiled.lua is changed to https://github.com/%s correctly.

Expected behaviour

When I run PackerUpdate, packer will visit the github.com to clone these repositories of plugins.

Actual behaviour

It still redirect me to hub.fastgit.xyz/%s.

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

No branches or pull requests

1 participant