Update 'troubleshooting' for using mirror.

This commit is contained in:
jedsek 2022-02-06 10:52:01 +08:00 committed by Stephan Seitz
parent 1c8719f434
commit 767292681e

View file

@ -552,3 +552,18 @@ or you can configure git via `.gitconfig` and use git instead of curl
```lua
require("nvim-treesitter.install").prefer_git = true
```
#### I want to use a mirror instead of "https://github.com/"
In your Lua config:
```lua
for _, config in pairs(require("nvim-treesitter.parsers").get_parser_configs()) do
config.install_info.url = config.install_info.url:gsub("https://github.com/", "something else")
end
require'nvim-treesitter.configs'.setup {
--
--
}
```