mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Update 'troubleshooting' for using mirror.
This commit is contained in:
parent
1c8719f434
commit
767292681e
1 changed files with 15 additions and 0 deletions
15
README.md
15
README.md
|
|
@ -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 {
|
||||
--
|
||||
--
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue