wbthomason / packer.nvim

A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config
MIT License
7.72k stars 263 forks source link

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

Open YHaoNan opened 1 year ago

YHaoNan commented 1 year ago

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.